MCPcopy Create free account

hub / github.com/ebobby/simple-raytracer / functions

Functions35 in github.com/ebobby/simple-raytracer

↓ 8 callersMethoddot
(&self, other: Vec3)
src/vector.rs:27
↓ 7 callersMethodnormalize
(&self)
src/vector.rs:39
↓ 3 callersMethodcorrect
Due to numerical precision sometimes we need to nudge vectors a little bit into a given direction.
src/vector.rs:54
↓ 2 callersMethodcross
(&self, other: Vec3)
src/vector.rs:31
↓ 2 callersMethodlength
(&self)
src/vector.rs:23
↓ 2 callersMethodreflect
(&self, other: Vec3)
src/vector.rs:48
↓ 1 callersMethodgamma_rgb
(&self, gamma_correction: f64)
src/color.rs:31
↓ 1 callersMethodget_ray
(&self, s: f64, t: f64)
src/camera.rs:42
↓ 1 callersMethodmaterial
(&self)
src/intersectable/plane.rs:33
↓ 1 callersMethodnorm
(&self)
src/vector.rs:19
↓ 1 callersMethodnormal
(&self, _point: Vec3)
src/intersectable/plane.rs:37
↓ 1 callersMethodrender
(&self, filename: String)
src/scene.rs:21
Methodadd
(self, rhs: Color)
src/color.rs:43
Methodadd
(self, rhs: Vec3)
src/vector.rs:62
Methodadd_assign
(&mut self, rhs: Color)
src/color.rs:53
Methodblack
()
src/color.rs:15
Methodcast_ray
( ray: Ray, objects: &[Box<dyn Intersectable>], lights: &[Light], options: &Op
src/ray.rs:53
Methodfrom_u8
(r: u8, g: u8, b: u8)
src/color.rs:23
Methodintersect
(ray: Ray, objects: &[Box<dyn Intersectable>])
src/ray.rs:23
Methodintersect
(&self, ray: Ray)
src/intersectable/plane.rs:15
Methodintersect
(&self, ray: Ray)
src/intersectable/sphere.rs:14
Functionmain
()
src/bin/main.rs:14
Methodmaterial
(&self)
src/intersectable/sphere.rs:39
Methodmul
(self, factor: f64)
src/color.rs:65
Methodmul
(self, factor: f64)
src/vector.rs:86
Methodneg
(self)
src/vector.rs:110
Methodneutral
()
src/material.rs:13
Methodnew
(origin: Vec3, look_at: Vec3, fov: f64, aspect_ratio: f64, roll: f64)
src/camera.rs:16
Methodnew
(r: f64, g: f64, b: f64)
src/color.rs:11
Methodnew
(x: f64, y: f64, z: f64)
src/vector.rs:11
Methodnormal
(&self, point: Vec3)
src/intersectable/sphere.rs:43
Methodshade
( objects: &[Box<dyn Intersectable>], lights: &[Light], options: &Options, int
src/light.rs:23
Methodsub
(self, rhs: Vec3)
src/vector.rs:74
Methodwhite
()
src/color.rs:19
Methodzero
()
src/vector.rs:15