MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / new

Method new

tools/bloom-reference/src/main.rs:661–668  ·  view source on GitHub ↗
(origin: Vec3, direction: Vec3)

Source from the content-addressed store, hash-verified

659
660impl Ray {
661 fn new(origin: Vec3, direction: Vec3) -> Self {
662 let d = direction.normalize();
663 Self {
664 origin,
665 direction: d,
666 inv_direction: Vec3::new(1.0 / d.x, 1.0 / d.y, 1.0 / d.z),
667 }
668 }
669}
670
671struct Hit {

Callers 3

setup_world_hdrFunction · 0.45
add_sunFunction · 0.45
setup_cameraFunction · 0.45

Calls 1

next_u32Method · 0.80

Tested by

no test coverage detected