MCPcopy Create free account

hub / github.com/Nelarius/weekend-raytracer-rust / functions

Functions43 in github.com/Nelarius/weekend-raytracer-rust

↓ 8 callersMethoddot
(&self, rhs: Vec3)
src/vec3.rs:40
↓ 5 callersMethodlength
(&self)
src/vec3.rs:32
↓ 4 callersMethodmake_unit_vector
(&self)
src/vec3.rs:52
↓ 3 callersMethodreflect
(&self, n: Vec3)
src/vec3.rs:61
↓ 2 callersMethodcross
(&self, rhs: Vec3)
src/vec3.rs:44
↓ 2 callersMethodpoint_at_parameter
(self, t: f32)
src/ray.rs:14
↓ 2 callersFunctionrandom_in_unit_sphere
(rng: &mut ThreadRng)
src/vec3.rs:66
↓ 2 callersMethodsquared_length
(&self)
src/vec3.rs:36
↓ 1 callersFunctioncolor
(r: Ray, world: &World, rng: &mut ThreadRng, depth: u32)
src/renderer.rs:11
↓ 1 callersMethodhit
(&self, ray: &Ray, t_min: f32, t_max: f32)
src/hitable.rs:27
↓ 1 callersMethodmake_ray
(&self, rng: &mut ThreadRng, u: f32, v: f32)
src/camera.rs:52
↓ 1 callersFunctionrandom_in_unit_disk
(rng: &mut ThreadRng)
src/vec3.rs:78
↓ 1 callersFunctionrefract
(v: Vec3, n: Vec3, ni_over_nt: f32)
src/material.rs:54
↓ 1 callersFunctionrender
(width: usize, height: usize, camera: Camera, world: World)
src/renderer.rs:30
↓ 1 callersMethodscatter
(self, _: Ray, hit: HitRecord<'_>, rng: &mut ThreadRng)
src/material.rs:26
↓ 1 callersFunctionschlick
(cosine: f32, refraction_index: f32)
src/material.rs:68
↓ 1 callersFunctionto_bgra
(r: u32, g: u32, b: u32)
src/renderer.rs:26
Functionadd
()
src/vec3.rs:164
Methodadd
(self, rhs: Vec3)
src/vec3.rs:94
Functionadd_assign
()
src/vec3.rs:184
Methodadd_assign
(&mut self, rhs: Vec3)
src/vec3.rs:104
Functioncross
()
src/vec3.rs:199
Methoddielectric
(refraction_index: f32)
src/material.rs:121
Functiondot
()
src/vec3.rs:220
Functionhadamard
()
src/vec3.rs:285
Methodlambertian
(albedo: Vec3)
src/material.rs:113
Functionlength
()
src/vec3.rs:237
Functionmain
()
src/main.rs:25
Methodmetal
(albedo: Vec3, fuzz: f32)
src/material.rs:117
Functionmul
()
src/vec3.rs:269
Methodmul
(self, rhs: Vec3)
src/vec3.rs:114
Functionneg
()
src/vec3.rs:292
Methodneg
(self)
src/vec3.rs:138
Methodnew
( lookfrom: Vec3, lookat: Vec3, vup: Vec3, vfov: f32, aspect: f32,
src/camera.rs:16
Methodnew
(center: Vec3, radius: f32, material: Material)
src/hitable.rs:19
Methodnew
(origin: Vec3, direction: Vec3)
src/ray.rs:10
Methodnew
(attenuation: Vec3, ray: Ray)
src/material.rs:15
Methodnew
(x: f32, y: f32, z: f32)
src/vec3.rs:12
Methodones
()
src/vec3.rs:16
Functionsquared_length
()
src/vec3.rs:253
Functionsub
()
src/vec3.rs:308
Methodsub
(self, rhs: Vec3)
src/vec3.rs:150
Methodzeros
()
src/vec3.rs:24