Struct zaplib_components::SphericalAngles
source · [−]Expand description
Spherical coordinates follow the same conventions as https://threejs.org/docs/#api/en/math/Spherical
Fields
phi: f32
Polar angle from 0 to PI. A value of 0 looking down the Y axis, and PI looking up the Y axis.
theta: f32
Equator angle around the Y (up) axis from 0 to 2*PI. Example values:
- 0 looking down the Z axis
- PI/2 looking down the X axis
- PI looking up the Z axis
- 3*PI/2 looking up the X axis.
radius: f32
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SphericalAngles
impl Send for SphericalAngles
impl Sync for SphericalAngles
impl Unpin for SphericalAngles
impl UnwindSafe for SphericalAngles
Blanket Implementations
Mutably borrows from an owned value. Read more