Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cessen/psychopath
/ functions
Functions
737 in github.com/cessen/psychopath
⨍
Functions
737
◇
Types & classes
117
↓ 2 callers
Function
ws_usize
(input: &str)
src/parse/basics.rs:24
↓ 2 callers
Method
xystar_from_xy
(cls, xy)
sub_crates/spectral_upsampling/src/meng/generate_meng_spectra_tables.py:208
↓ 2 callers
Method
xyz_ee_white
(cls)
sub_crates/spectral_upsampling/src/meng/generate_meng_spectra_tables.py:98
↓ 2 callers
Method
xyz_from_xyy
(xyy)
sub_crates/spectral_upsampling/src/meng/generate_meng_spectra_tables.py:126
↓ 2 callers
Function
zup_to_vec
Simple mapping of a vector that exists in a z-up space to the space of another vector who's direction is considered z-up for the purpose. Obviously th
src/math.rs:47
↓ 1 callers
Method
_draw_bucket
(self, crop, bucket_info, pixels_encoded)
psychoblend/render.py:65
↓ 1 callers
Method
_export_psy
(self)
psychoblend/psy_export.py:71
↓ 1 callers
Method
_locate_binary
()
psychoblend/render.py:15
↓ 1 callers
Method
_render
(self, scene)
psychoblend/render.py:97
↓ 1 callers
Method
acc_bounds
(&mut self, objects: &mut [T], bounder: &F)
src/accel/bvh_base.rs:70
↓ 1 callers
Method
add_assembly
(&mut self, name: &str, asmb: Assembly<'a>)
src/scene/assembly.rs:208
↓ 1 callers
Method
add_instance
( &mut self, name: &str, surface_shader_name: Option<&str>, xforms: Option<&[T
src/scene/assembly.rs:223
↓ 1 callers
Method
add_surface_shader
(&mut self, name: &str, shader: &'a dyn SurfaceShader)
src/scene/assembly.rs:185
↓ 1 callers
Method
bin_size
(cls)
sub_crates/spectral_upsampling/src/meng/generate_meng_spectra_tables.py:64
↓ 1 callers
Method
bounds
(&self)
src/accel/light_tree.rs:41
↓ 1 callers
Method
build
(mut self)
src/scene/assembly.rs:288
↓ 1 callers
Function
bytes_to_u64
(a: [u8; 6])
sub_crates/compact/src/shared_exp/signed48.rs:136
↓ 1 callers
Function
bytes_to_u64
(a: [u8; 5])
sub_crates/compact/src/shared_exp/unsigned40.rs:112
↓ 1 callers
Function
calc_traversal_code
(split: SplitAxes)
sub_crates/bvh_order/src/lib.rs:30
↓ 1 callers
Method
cleanup
(self)
psychoblend/world.py:44
↓ 1 callers
Method
cleanup
(self)
psychoblend/assembly.py:101
↓ 1 callers
Method
color
(&self)
src/scene/mod.rs:128
↓ 1 callers
Method
compressed_size
Returns the post-compression size of this color.
src/color.rs:145
↓ 1 callers
Method
compressed_size
Returns the post-compression size of this closure.
src/shading/surface_closure.rs:158
↓ 1 callers
Function
compute_reflectance_map
(res)
sub_crates/spectral_upsampling/src/meng/generate_meng_spectra_tables.py:961
↓ 1 callers
Function
compute_spectra
(data_points)
sub_crates/spectral_upsampling/src/meng/generate_meng_spectra_tables.py:702
↓ 1 callers
Function
coordinates
()
sub_crates/spectral_upsampling/src/meng/generate_meng_spectra_tables.py:980
↓ 1 callers
Function
cosine_sample_hemisphere
(u: f32, v: f32)
src/sampling/monte_carlo.rs:34
↓ 1 callers
Function
create_triangle_fans
(grid)
sub_crates/spectral_upsampling/src/meng/generate_meng_spectra_tables.py:907
↓ 1 callers
Method
cross
(self, other: Normal)
sub_crates/math3d/src/normal.rs:169
↓ 1 callers
Function
decode
(trifloat: [u8; 6])
sub_crates/compact/src/shared_exp/signed48.rs:56
↓ 1 callers
Function
decode
(trifloat: [u8; 5])
sub_crates/compact/src/shared_exp/unsigned40.rs:44
↓ 1 callers
Method
diagonal2
(&self)
src/bbox.rs:95
↓ 1 callers
Function
dielectric_fresnel
(ior_ratio: f32, c: f32)
src/shading/surface_closure.rs:729
↓ 1 callers
Function
dot_norm
(a: (f32, f32, f32), b: (f32, f32, f32))
sub_crates/compact/src/unit_vec/oct32.rs:26
↓ 1 callers
Method
duplicate_next_task
(&mut self)
src/ray.rs:288
↓ 1 callers
Function
early_clip
(idx, v)
sub_crates/spectral_upsampling/src/meng/generate_meng_spectra_tables.py:1004
↓ 1 callers
Method
ensure_lane_count
Makes sure there are at least `count` lanes.
src/ray.rs:218
↓ 1 callers
Method
estimate_eval_over_sphere_light
Returns an estimate of the sum total energy that evaluate() would return when integrated over a spherical light source with a center at relative posit
src/shading/surface_closure.rs:115
↓ 1 callers
Method
export
(self, render_engine, w)
psychoblend/world.py:30
↓ 1 callers
Method
export
(self, render_engine, w)
psychoblend/assembly.py:52
↓ 1 callers
Function
find_intersection
(p0, p1, i0, i1, clip_path)
sub_crates/spectral_upsampling/src/meng/generate_meng_spectra_tables.py:440
↓ 1 callers
Method
generate_ray
(&self, x: f32, y: f32, time: f32, wavelength: f32, u: f32, v: f32)
src/camera.rs:74
↓ 1 callers
Function
generate_xystar_grid
(scale)
sub_crates/spectral_upsampling/src/meng/generate_meng_spectra_tables.py:476
↓ 1 callers
Method
get_bucket
(&'a self, min: (u32, u32), max: (u32, u32))
src/image.rs:61
↓ 1 callers
Function
get_faure_permutation
Computes the Faure digit permutation for 0, ..., b - 1.
sub_crates/halton/build.rs:247
↓ 1 callers
Method
get_mesh
(self, ob, group_prefix)
psychoblend/assembly.py:107
↓ 1 callers
Method
get_rect_lamp
(self, ob, group_prefix)
psychoblend/assembly.py:141
↓ 1 callers
Method
get_sphere_lamp
(self, ob, group_prefix)
psychoblend/assembly.py:136
↓ 1 callers
Function
golden_ratio_sample
Golden ratio sampler.
src/renderer.rs:728
↓ 1 callers
Function
half_theta_sample
Returns the cosine of the half-angle that should be sampled, given a random variable in [0,1]
src/shading/surface_closure.rs:597
↓ 1 callers
Function
hash_u64
(n: u64, seed: u64)
src/hash.rs:12
↓ 1 callers
Method
height
(&self)
src/image.rs:41
↓ 1 callers
Method
init_uv
uv is derived from xy* by transforming grid points to integer coordinates. uv depends on xy* and the grid used.
sub_crates/spectral_upsampling/src/meng/generate_meng_spectra_tables.py:224
↓ 1 callers
Method
init_xystar
xy* is a color space where the line between blue and red is horizontal. Also, equal-energy white is the origin. xy* depends only
sub_crates/spectral_upsampling/src/meng/generate_meng_spectra_tables.py:176
↓ 1 callers
Method
instance_bounds
Returns a pair of vectors with the bounds of all instances. This is used for building the assembly's BVH4.
src/scene/assembly.rs:354
↓ 1 callers
Function
invert
Compute the radical inverse with Faure permutations.
sub_crates/halton/build.rs:283
↓ 1 callers
Function
is_nl
(c: char)
src/parse/data_tree.rs:491
↓ 1 callers
Function
is_prime
Check primality. Not optimized, since it's not performance-critical.
sub_crates/halton/build.rs:237
↓ 1 callers
Function
is_reserved_char
(c: char)
src/parse/data_tree.rs:498
↓ 1 callers
Method
iter_internal_children_with_type
( &'a self, type_name: &'static str, )
src/parse/data_tree.rs:103
↓ 1 callers
Method
lerp
(self, other: BBox, alpha: f32)
src/bbox.rs:145
↓ 1 callers
Method
lerp
(self, other: f32, alpha: f32)
src/lerp.rs:59
↓ 1 callers
Method
light_index
(&self)
src/accel/light_tree.rs:53
↓ 1 callers
Method
load
(cls, filename)
sub_crates/spectral_upsampling/src/meng/generate_meng_spectra_tables.py:55
↓ 1 callers
Function
log2_64
Gets the log base 2 of the given integer
src/math.rs:8
↓ 1 callers
Function
make_transform_format_error
(byte_offset: usize)
src/parse/psy.rs:574
↓ 1 callers
Function
map_0_1_to_wavelength
(n: f32)
src/color.rs:20
↓ 1 callers
Function
median_split
Takes a slice of boundable objects and partitions them based on the median heuristic. Returns the index of the partition boundary and the axis that i
src/accel/objects_split.rs:291
↓ 1 callers
Function
merge_slices_to
Merges two slices of things, storing the result in `slice_out`. Panics if `slice_out` is not the right size.
src/algorithm.rs:266
↓ 1 callers
Function
needs_xform_mb
Determines if the given object needs to be exported with transformation motion blur or not.
psychoblend/util.py:71
↓ 1 callers
Method
next_task_ray_idx
(&self, i: usize)
src/ray.rs:233
↓ 1 callers
Method
node_child_count
Returns the number of children of this node, assuming a collapse number of `ARITY_LOG2`.
src/accel/light_tree.rs:241
↓ 1 callers
Method
node_child_count_recurse
Returns the number of children of this node, assuming a collapse number of `level_collapse`.
src/accel/light_tree.rs:254
↓ 1 callers
Method
node_nth_child_index
Returns the index of the nth child, assuming a collapse number of `ARITY_LOG2`.
src/accel/light_tree.rs:247
↓ 1 callers
Method
node_nth_child_index_recurse
Returns the index of the nth child, assuming a collapse number of `level_collapse`.
src/accel/light_tree.rs:274
↓ 1 callers
Method
normalized
(&self)
sub_crates/math3d/src/vector.rs:37
↓ 1 callers
Function
parse_assembly
( arena: &'a Arena, tree: &'a DataTree, )
src/parse/psy_assembly.rs:17
↓ 1 callers
Function
parse_camera
(arena: &'a Arena, tree: &'a DataTree)
src/parse/psy.rs:353
↓ 1 callers
Function
parse_distant_disk_light
( arena: &'a Arena, tree: &'a DataTree, )
src/parse/psy_light.rs:20
↓ 1 callers
Function
parse_leaf_content
(source_text: (usize, &str))
src/parse/data_tree.rs:378
↓ 1 callers
Function
parse_mesh_surface
( arena: &'a Arena, tree: &'a DataTree, )
src/parse/psy_mesh_surface.rs:27
↓ 1 callers
Function
parse_node
(source_text: (usize, &'a str))
src/parse/data_tree.rs:296
↓ 1 callers
Function
parse_output_info
(tree: &DataTree)
src/parse/psy.rs:202
↓ 1 callers
Function
parse_rectangle_light
( arena: &'a Arena, tree: &'a DataTree, )
src/parse/psy_light.rs:135
↓ 1 callers
Function
parse_render_settings
(tree: &DataTree)
src/parse/psy.rs:260
↓ 1 callers
Function
parse_scene
Takes in a `DataTree` representing a Scene node and returns
src/parse/psy.rs:95
↓ 1 callers
Function
parse_sphere_light
( arena: &'a Arena, tree: &'a DataTree, )
src/parse/psy_light.rs:86
↓ 1 callers
Function
parse_surface_shader
( arena: &'a Arena, tree: &'a DataTree, )
src/parse/psy_surface_shader.rs:24
↓ 1 callers
Function
parse_world
(arena: &'a Arena, tree: &'a DataTree)
src/parse/psy.rs:455
↓ 1 callers
Function
plot_spectra
(data_points)
sub_crates/spectral_upsampling/src/meng/generate_meng_spectra_tables.py:716
↓ 1 callers
Function
point_order
(p1: Point, p2: Point)
src/surface/mod.rs:45
↓ 1 callers
Method
pop_do_next_task_and_push_rays
Pops the next task off the stack, executes the provided closure for each ray index in the task, and pushes the ray indices back onto the indicated lan
src/ray.rs:350
↓ 1 callers
Method
print
(&self, psy_content: &str)
src/parse/psy.rs:41
↓ 1 callers
Method
push_lanes_to_tasks
Takes the given list of lane indices, and pushes any excess indices on the end of each into a new task, in the order provided.
src/ray.rs:282
↓ 1 callers
Method
push_ray_index
Pushes the given ray index onto the end of the specified lane.
src/ray.rs:257
↓ 1 callers
Method
rays_traced
(&self)
src/tracer.rs:39
↓ 1 callers
Method
recursive_build
( &mut self, offset: usize, depth: usize, objects_per_leaf: usize, obj
src/accel/bvh_base.rs:96
↓ 1 callers
Method
recursive_build
( &mut self, offset: usize, depth: usize, objects: &mut [T], info_gett
src/accel/light_tree.rs:296
↓ 1 callers
Method
render
( &self, max_samples_per_bucket: u32, crop: Option<(u32, u32, u32, u32)>, thre
src/renderer.rs:76
← previous
next →
201–300 of 737, ranked by callers