Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Nelarius/weekend-raytracer-rust
/ functions
Functions
43 in github.com/Nelarius/weekend-raytracer-rust
⨍
Functions
43
◇
Types & classes
11
↓ 8 callers
Method
dot
(&self, rhs: Vec3)
src/vec3.rs:40
↓ 5 callers
Method
length
(&self)
src/vec3.rs:32
↓ 4 callers
Method
make_unit_vector
(&self)
src/vec3.rs:52
↓ 3 callers
Method
reflect
(&self, n: Vec3)
src/vec3.rs:61
↓ 2 callers
Method
cross
(&self, rhs: Vec3)
src/vec3.rs:44
↓ 2 callers
Method
point_at_parameter
(self, t: f32)
src/ray.rs:14
↓ 2 callers
Function
random_in_unit_sphere
(rng: &mut ThreadRng)
src/vec3.rs:66
↓ 2 callers
Method
squared_length
(&self)
src/vec3.rs:36
↓ 1 callers
Function
color
(r: Ray, world: &World, rng: &mut ThreadRng, depth: u32)
src/renderer.rs:11
↓ 1 callers
Method
hit
(&self, ray: &Ray, t_min: f32, t_max: f32)
src/hitable.rs:27
↓ 1 callers
Method
make_ray
(&self, rng: &mut ThreadRng, u: f32, v: f32)
src/camera.rs:52
↓ 1 callers
Function
random_in_unit_disk
(rng: &mut ThreadRng)
src/vec3.rs:78
↓ 1 callers
Function
refract
(v: Vec3, n: Vec3, ni_over_nt: f32)
src/material.rs:54
↓ 1 callers
Function
render
(width: usize, height: usize, camera: Camera, world: World)
src/renderer.rs:30
↓ 1 callers
Method
scatter
(self, _: Ray, hit: HitRecord<'_>, rng: &mut ThreadRng)
src/material.rs:26
↓ 1 callers
Function
schlick
(cosine: f32, refraction_index: f32)
src/material.rs:68
↓ 1 callers
Function
to_bgra
(r: u32, g: u32, b: u32)
src/renderer.rs:26
Function
add
()
src/vec3.rs:164
Method
add
(self, rhs: Vec3)
src/vec3.rs:94
Function
add_assign
()
src/vec3.rs:184
Method
add_assign
(&mut self, rhs: Vec3)
src/vec3.rs:104
Function
cross
()
src/vec3.rs:199
Method
dielectric
(refraction_index: f32)
src/material.rs:121
Function
dot
()
src/vec3.rs:220
Function
hadamard
()
src/vec3.rs:285
Method
lambertian
(albedo: Vec3)
src/material.rs:113
Function
length
()
src/vec3.rs:237
Function
main
()
src/main.rs:25
Method
metal
(albedo: Vec3, fuzz: f32)
src/material.rs:117
Function
mul
()
src/vec3.rs:269
Method
mul
(self, rhs: Vec3)
src/vec3.rs:114
Function
neg
()
src/vec3.rs:292
Method
neg
(self)
src/vec3.rs:138
Method
new
( lookfrom: Vec3, lookat: Vec3, vup: Vec3, vfov: f32, aspect: f32,
src/camera.rs:16
Method
new
(center: Vec3, radius: f32, material: Material)
src/hitable.rs:19
Method
new
(origin: Vec3, direction: Vec3)
src/ray.rs:10
Method
new
(attenuation: Vec3, ray: Ray)
src/material.rs:15
Method
new
(x: f32, y: f32, z: f32)
src/vec3.rs:12
Method
ones
()
src/vec3.rs:16
Function
squared_length
()
src/vec3.rs:253
Function
sub
()
src/vec3.rs:308
Method
sub
(self, rhs: Vec3)
src/vec3.rs:150
Method
zeros
()
src/vec3.rs:24