Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/darksv/compile-time-ray-tracer-in-rust
/ functions
Functions
35 in github.com/darksv/compile-time-ray-tracer-in-rust
⨍
Functions
35
◇
Types & classes
18
↓ 8 callers
Function
dot
(v1: Vec3, v2: Vec3)
src/ray_tracer.rs:82
↓ 7 callers
Function
norm
(v: Vec3)
src/ray_tracer.rs:42
↓ 4 callers
Function
floor
(val: Real)
src/ray_tracer.rs:25
↓ 3 callers
Function
scale
(k: Real, v: &Color)
src/ray_tracer.rs:165
↓ 2 callers
Method
camera
(&self)
src/scene.rs:11
↓ 2 callers
Function
cross
(v1: Vec3, v2: Vec3)
src/ray_tracer.rs:90
↓ 2 callers
Method
lights
(&self)
src/scene.rs:19
↓ 2 callers
Function
mag
(v: Vec3)
src/ray_tracer.rs:86
↓ 2 callers
Function
render_ct
()
src/main.rs:16
↓ 2 callers
Function
sqrt
(val: Real)
src/ray_tracer.rs:3
↓ 2 callers
Method
surface
(&self)
src/ray_tracer.rs:275
↓ 1 callers
Method
diffuse
(&self, _pos: &Vec3)
src/ray_tracer.rs:367
↓ 1 callers
Method
intersect
(&'obj self, ray: &Ray, thing: &'obj Thing)
src/ray_tracer.rs:248
↓ 1 callers
Method
into_array
(self)
src/canvas.rs:14
↓ 1 callers
Method
normal
(&self, pos: &Vec3)
src/ray_tracer.rs:271
↓ 1 callers
Function
pow
(base: Real, mut iexp: i32)
src/ray_tracer.rs:15
↓ 1 callers
Method
reflect
(&self, _pos: &Vec3)
src/ray_tracer.rs:373
↓ 1 callers
Method
roughness
(&self)
src/ray_tracer.rs:376
↓ 1 callers
Method
set_pixel
(&mut self, x: usize, y: usize, c: Color)
src/canvas.rs:20
↓ 1 callers
Method
specular
(&self, _pos: &Vec3)
src/ray_tracer.rs:370
↓ 1 callers
Method
things
(&self)
src/scene.rs:15
Method
add
(self, rhs: Vec3)
src/ray_tracer.rs:49
Method
background
()
src/ray_tracer.rs:157
Method
black
()
src/ray_tracer.rs:150
Method
default_color
()
src/ray_tracer.rs:160
Method
grey
()
src/ray_tracer.rs:143
Function
main
()
src/main.rs:42
Method
mul
(self, rhs: Vec3)
src/ray_tracer.rs:73
Method
new
(x: Real, y: Real, z: Real)
src/ray_tracer.rs:37
Method
new
()
src/canvas.rs:8
Method
plane
(norm: Vec3, offset: Real, surface: MySurface)
src/ray_tracer.rs:324
Function
render_rt
()
src/main.rs:38
Method
sphere
(centre: Vec3, radius: Real, surface: MySurface)
src/ray_tracer.rs:316
Method
sub
(self, rhs: Vec3)
src/ray_tracer.rs:61
Method
white
()
src/ray_tracer.rs:136