oa::vlm

vlm module in the OA Core public surface.

MdRust public API

Public Types

Public Functions

pub fn cartesian_to_spherical<T: Float>(value: Vec3<T>) -> Vec3<T>
pub fn degrees<T: Float>(radians: T) -> T
pub fn radians<T: Float>(degrees: T) -> T
pub fn spherical_to_cartesian<T: Float>( yaw_radians: T, pitch_radians: T, radius: T, ) -> Vec3<T>

Public Constants & Variables

pub const INVERSE_TOLERANCE: f32 = _; // 3.81469727E-6f32
pub const PI: f32 = std::f32::consts::PI; // 3.14159274f32
pub const TOLERANCE: f32 = 1.0e-5;

Function Documentation

pub fn cartesian_to_spherical<T: Float>( value: Vec3<T> ) -> Vec3<T>
Converts Cartesian coordinates to (yaw, pitch, radius).
pub fn degrees<T: Float>( radians: T ) -> T
No public source comment is attached to this declaration.
pub fn radians<T: Float>( degrees: T ) -> T
No public source comment is attached to this declaration.
pub fn spherical_to_cartesian<T: Float>( yaw_radians: T, pitch_radians: T, radius: T ) -> Vec3<T>
Converts spherical (yaw, pitch, radius) coordinates to Cartesian space.