Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ebobby/simple-raytracer
/ functions
Functions
35 in github.com/ebobby/simple-raytracer
⨍
Functions
35
◇
Types & classes
13
↓ 8 callers
Method
dot
(&self, other: Vec3)
src/vector.rs:27
↓ 7 callers
Method
normalize
(&self)
src/vector.rs:39
↓ 3 callers
Method
correct
Due to numerical precision sometimes we need to nudge vectors a little bit into a given direction.
src/vector.rs:54
↓ 2 callers
Method
cross
(&self, other: Vec3)
src/vector.rs:31
↓ 2 callers
Method
length
(&self)
src/vector.rs:23
↓ 2 callers
Method
reflect
(&self, other: Vec3)
src/vector.rs:48
↓ 1 callers
Method
gamma_rgb
(&self, gamma_correction: f64)
src/color.rs:31
↓ 1 callers
Method
get_ray
(&self, s: f64, t: f64)
src/camera.rs:42
↓ 1 callers
Method
material
(&self)
src/intersectable/plane.rs:33
↓ 1 callers
Method
norm
(&self)
src/vector.rs:19
↓ 1 callers
Method
normal
(&self, _point: Vec3)
src/intersectable/plane.rs:37
↓ 1 callers
Method
render
(&self, filename: String)
src/scene.rs:21
Method
add
(self, rhs: Color)
src/color.rs:43
Method
add
(self, rhs: Vec3)
src/vector.rs:62
Method
add_assign
(&mut self, rhs: Color)
src/color.rs:53
Method
black
()
src/color.rs:15
Method
cast_ray
( ray: Ray, objects: &[Box<dyn Intersectable>], lights: &[Light], options: &Op
src/ray.rs:53
Method
from_u8
(r: u8, g: u8, b: u8)
src/color.rs:23
Method
intersect
(ray: Ray, objects: &[Box<dyn Intersectable>])
src/ray.rs:23
Method
intersect
(&self, ray: Ray)
src/intersectable/plane.rs:15
Method
intersect
(&self, ray: Ray)
src/intersectable/sphere.rs:14
Function
main
()
src/bin/main.rs:14
Method
material
(&self)
src/intersectable/sphere.rs:39
Method
mul
(self, factor: f64)
src/color.rs:65
Method
mul
(self, factor: f64)
src/vector.rs:86
Method
neg
(self)
src/vector.rs:110
Method
neutral
()
src/material.rs:13
Method
new
(origin: Vec3, look_at: Vec3, fov: f64, aspect_ratio: f64, roll: f64)
src/camera.rs:16
Method
new
(r: f64, g: f64, b: f64)
src/color.rs:11
Method
new
(x: f64, y: f64, z: f64)
src/vector.rs:11
Method
normal
(&self, point: Vec3)
src/intersectable/sphere.rs:43
Method
shade
( objects: &[Box<dyn Intersectable>], lights: &[Light], options: &Options, int
src/light.rs:23
Method
sub
(self, rhs: Vec3)
src/vector.rs:74
Method
white
()
src/color.rs:19
Method
zero
()
src/vector.rs:15