pub enum CMathFormula {
GeodeticDistance,
GeodeticHeading,
GeodeticSpeed,
TemperatureCelsiusToFahrenheit,
TemperatureCelsiusToKelvin,
TemperatureFahrenheitToCelsius,
TemperatureFahrenheitToKelvin,
TemperatureKelvinToCelsius,
TemperatureKelvinToFahrenheit,
}Expand description
Collection of mathematical formulas that support the npu_math function. Simply specify the formula, pass the parameters, and get the answer.
Variants§
GeodeticDistance
Distance in meters between two WGS84 points.
GeodeticHeading
Heading in °N true North 0 - 359.
GeodeticSpeed
Speed in meters per second between two WGS84 points.
TemperatureCelsiusToFahrenheit
°F = (°C x 9/5) + 32
TemperatureCelsiusToKelvin
°K = °C + 273.15
TemperatureFahrenheitToCelsius
°C = (°F − 32) × 5/9
TemperatureFahrenheitToKelvin
°K = (°F − 32) × 5/9 + 273.15
TemperatureKelvinToCelsius
°C = °K − 273.15
TemperatureKelvinToFahrenheit
°F = (°K − 273.15) × 9/5 + 32
Auto Trait Implementations§
impl Freeze for CMathFormula
impl RefUnwindSafe for CMathFormula
impl Send for CMathFormula
impl Sync for CMathFormula
impl Unpin for CMathFormula
impl UnsafeUnpin for CMathFormula
impl UnwindSafe for CMathFormula
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more