MCPcopy Create free account
hub / github.com/PVDoriginal/firefly / transform

Function transform

examples/flashlight.rs:128–131  ·  view source on GitHub ↗
(angle: f32, radius: f32)

Source from the content-addressed store, hash-verified

126}
127
128fn transform(angle: f32, radius: f32) -> Transform {
129 Transform::from_translation(vec3(angle.cos() * radius, angle.sin() * radius, 0.0))
130 .with_rotation(Quat::from_rotation_z(angle - FRAC_PI_2))
131}
132
133fn f(unit_size: f32) -> Vec<Vec2> {
134 vec![

Callers 1

setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected