Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Wafelack/raytracer
/ functions
Functions
133 in github.com/Wafelack/raytracer
⨍
Functions
133
◇
Types & classes
30
↓ 47 callers
Method
add
(&mut self, v: Vec3)
src/vec3.rs:82
↓ 30 callers
Method
x
(&self)
src/vec3.rs:66
↓ 30 callers
Method
y
(&self)
src/vec3.rs:69
↓ 30 callers
Method
z
(&self)
src/vec3.rs:72
↓ 25 callers
Method
direction
(&self)
src/ray.rs:21
↓ 23 callers
Method
min
(&self)
src/aabb.rs:36
↓ 19 callers
Method
origin
(&self)
src/ray.rs:18
↓ 17 callers
Function
random_double
(min: f32, max: f32)
src/utils.rs:15
↓ 9 callers
Function
dot
(u: Vec3, v: Vec3)
src/vec3.rs:150
↓ 8 callers
Method
len
(&self)
src/vec3.rs:95
↓ 8 callers
Method
len_squared
(&self)
src/vec3.rs:98
↓ 8 callers
Method
time
(&self)
src/ray.rs:24
↓ 7 callers
Method
set_face_normal
(&mut self, r: Ray, outward_normal: Vec3)
src/objects/hittable.rs:33
↓ 6 callers
Method
add
(&mut self, object: Arc<dyn Hittable>)
src/objects/hittable_list.rs:12
↓ 6 callers
Method
at
(&self, t: f32)
src/ray.rs:27
↓ 6 callers
Method
inv
Used to get the inverted values of the vec
src/vec3.rs:76
↓ 6 callers
Method
max
(&self)
src/aabb.rs:39
↓ 6 callers
Function
unit_vector
(v: Vec3)
src/vec3.rs:175
↓ 4 callers
Method
bounding_box
(&'a self, time0: f32, time1: f32, output_box: &mut Aabb)
src/bvh.rs:79
↓ 3 callers
Function
box_compare
(a: &dyn Hittable, b: &dyn Hittable, axis: usize)
src/bvh.rs:106
↓ 3 callers
Function
color
(unique: f32)
src/main.rs:150
↓ 3 callers
Function
max
(a: f32, b: f32)
src/aabb.rs:77
↓ 3 callers
Function
min
(a: f32, b: f32)
src/aabb.rs:65
↓ 3 callers
Function
surrounding_box
(box0: &Aabb, box1: &Aabb)
src/aabb.rs:8
↓ 3 callers
Method
value
(&self, u: f32, v: f32, p: &point3)
src/texture.rs:30
↓ 2 callers
Method
center
(&self, time: f32)
src/objects/moving_sphere.rs:31
↓ 2 callers
Function
clamp
(x: f32, min: f32, max: f32)
src/utils.rs:6
↓ 2 callers
Function
cross
(u: Vec3, v: Vec3)
src/vec3.rs:153
↓ 2 callers
Function
degrees_to_radians
(degrees: f32)
src/utils.rs:3
↓ 2 callers
Method
get_pixels
(&self)
src/canvas.rs:125
↓ 2 callers
Function
random_int
(min: i32, max: i32)
src/utils.rs:20
↓ 2 callers
Function
reflect
(v: Vec3, n: Vec3)
src/vec3.rs:178
↓ 2 callers
Function
write_color_to_writer
( writer: &mut W, pixel_color: color, samples_per_pixel: usize, )
src/colors.rs:10
↓ 1 callers
Method
bounding_box
(&self, time0: f32, time1: f32, output_box: &mut Aabb)
src/objects/hittable.rs:77
↓ 1 callers
Method
clear
(&mut self)
src/objects/hittable_list.rs:15
↓ 1 callers
Function
cornell_box
()
src/main.rs:221
↓ 1 callers
Function
cornell_smoke
()
src/main.rs:154
↓ 1 callers
Function
custom_scene
()
src/main.rs:299
↓ 1 callers
Function
earth
()
src/main.rs:313
↓ 1 callers
Method
emitted
(&self, u: f32, v: f32, p: &point3)
src/material/material.rs:191
↓ 1 callers
Function
final_scene
()
src/main.rs:33
↓ 1 callers
Function
format_bar
(bar: &mut String , percentage: f32)
src/main.rs:585
↓ 1 callers
Method
get_ray
(&self, s: f32, t: f32)
src/camera.rs:59
↓ 1 callers
Function
get_sphere_uv
(p: &point3, u: &mut f32, v: &mut f32)
src/objects/sphere.rs:19
↓ 1 callers
Method
hit
(&self, r: &Ray, mut t_min: f32, mut t_max: f32)
src/aabb.rs:42
↓ 1 callers
Function
index_to_xy
(xsize: usize , index: usize)
src/canvas.rs:20
↓ 1 callers
Method
into
(self)
src/vec3.rs:10
↓ 1 callers
Method
iter_pixels
(&self)
src/canvas.rs:118
↓ 1 callers
Method
mul
(&mut self, t: f32)
src/vec3.rs:87
↓ 1 callers
Method
near_zero
(&self)
src/vec3.rs:61
↓ 1 callers
Method
noise
(&self, p: &point3)
src/perlin.rs:43
↓ 1 callers
Function
random_scene
()
src/main.rs:361
↓ 1 callers
Function
ray_color
(r: Ray, background: &color, world: &impl Hittable, depth: i32)
src/ray.rs:32
↓ 1 callers
Function
reflectance
(cosine: f32, ref_idx: f32)
src/material/material.rs:161
↓ 1 callers
Function
refract
(uv: Vec3, n: Vec3, etai_over_etat: f32)
src/vec3.rs:181
↓ 1 callers
Method
scatter
( &self, r_in: Ray, rec: HitRecord, attenuation: &mut color, scattered
src/material/material.rs:33
↓ 1 callers
Function
simple_light
()
src/main.rs:279
↓ 1 callers
Method
turb
(&self, p: &point3, depth: i32)
src/perlin.rs:31
↓ 1 callers
Function
two_perlin_spheres
()
src/main.rs:323
↓ 1 callers
Function
two_spheres
()
src/main.rs:340
↓ 1 callers
Method
write_header
(&self)
src/canvas.rs:111
↓ 1 callers
Method
write_header_to_writer
(&self, w: &mut W)
src/canvas.rs:114
↓ 1 callers
Method
write_pixels
(&self)
src/canvas.rs:102
↓ 1 callers
Method
write_pixels_to_writer
(&self, writer: &mut W)
src/canvas.rs:107
Method
bounding_box
(&self, time0: f32, time1: f32, output_box: &mut Aabb)
src/aarect.rs:37
Method
bounding_box
(&self, time0: f32, time1: f32, output_box: &mut Aabb)
src/constant_medium.rs:93
Method
bounding_box
(&'a self, time0: f32, time1: f32, output_box: &mut Aabb)
src/objects/hittable.rs:47
Method
bounding_box
(&'a self, time0: f32, time1: f32, output_box: &mut Aabb)
src/objects/hittable_list.rs:23
Method
bounding_box
(&'a self, time0: f32, time1: f32, output_box: &mut Aabb)
src/objects/moving_sphere.rs:37
Method
bounding_box
(&'a self, time0: f32, time1: f32, output_box: &mut Aabb)
src/objects/sphere.rs:62
Function
box_x_compare
(a: &dyn Hittable, b: &dyn Hittable)
src/bvh.rs:116
Function
box_y_compare
(a: &dyn Hittable, b: &dyn Hittable)
src/bvh.rs:119
Function
box_z_compare
(a: &dyn Hittable, b: &dyn Hittable)
src/bvh.rs:122
Method
dimensions
(&self)
src/canvas.rs:122
Method
div
(&mut self, t: f32)
src/vec3.rs:92
Method
emitted
(&self, u: f32, v: f32, p: &point3)
src/material/material.rs:12
Method
from
(x0: f32, x1: f32, y0: f32, y1: f32, k: f32, mat: Arc<dyn Material>)
src/aarect.rs:24
Method
from
(a: &point3, b: &point3)
src/aabb.rs:30
Method
from
(c: color)
src/texture.rs:19
Method
from
(list: &mut HittableList, time0: f32, time1: f32)
src/bvh.rs:12
Method
from
(e0: f32, e1: f32, e2: f32)
src/vec3.rs:19
Method
from
(p: Arc<dyn Hittable>, displacement: &Vec3)
src/objects/hittable.rs:57
Method
from
(a: color)
src/material/material.rs:52
Method
from
(p0: &point3, p1: &point3, ptr: Arc<dyn Material>)
src/material/boxx.rs:21
Method
from_color
(b: Arc<dyn Hittable>, d: f32, c: color)
src/constant_medium.rs:20
Method
from_color
(c: color)
src/material/material.rs:22
Method
from_colors
(c1: color, c2: color)
src/texture.rs:47
Method
from_fn
(x: usize, y: usize, samples_per_pixel: usize, mut f: F)
src/canvas.rs:26
Function
from_fn_dummy
()
src/canvas.rs:135
Function
from_fn_parallel
()
src/canvas.rs:149
Method
from_fn_parallel
(x: usize, y: usize, samples_per_pixel: usize, f: F)
src/canvas.rs:45
Method
from_fn_parallel_with_progress
( x: usize, y: usize, samples_per_pixel: usize, func: F, mut progress:
src/canvas.rs:51
Method
from_texture
(_even: Arc<dyn Texture>, _odd: Arc<dyn Texture>)
src/texture.rs:41
Method
from_texture
(b: Arc<dyn Hittable>, d: f32, a: Arc<dyn Texture>)
src/constant_medium.rs:13
Method
from_texture
(a: Arc<dyn Texture>)
src/material/material.rs:27
Method
fromrgb
(r: f32, g: f32, b: f32)
src/texture.rs:22
Method
fromvec
( src_objects: &mut Vec<Arc<dyn Hittable>>, start: usize, end: usize, time0: f32, time1: f
src/bvh.rs:16
Method
generate_perm
(point_count: usize)
src/perlin.rs:90
Method
get_at
(&self, i: usize)
src/vec3.rs:79
Method
hit
(&'a self, r: &Ray, t_min: f32, t_max: f32, rec: &mut HitRecord<'a>)
src/aarect.rs:44
next →
1–100 of 133, ranked by callers