oa::vlm::Float

A floating-point scalar admitted by VLM. This sealed trait limits packed VLM values to f32 and f64 while allowing their shared implementation to stay generic and dependency-free.

TrRust public API

Declaration

pub trait Float: Sealed + Copy + Debug + Default + PartialEq + PartialOrd + Add<Output = Self> + Sub<Output = Self> + Mul<Output = Self> + Div<Output = Self> + Neg<Output = Self> { const ZERO: Self; const ONE: Self; const TWO: Self; const HALF: Self; const PI: Self; const EPSILON: Self; const TOLERANCE: Self; const INVERSE_TOLERANCE: Self; // Required methods fn from_f64(value: f64) -> Self; fn abs(self) -> Self; fn sqrt(self) -> Self; fn sin(self) -> Self; fn cos(self) -> Self; fn tan(self) -> Self; fn asin(self) -> Self; fn acos(self) -> Self; fn atan2(self, other: Self) -> Self; fn is_finite(self) -> bool; fn max(self, other: Self) -> Self; fn min(self, other: Self) -> Self; }
Public Rust declaration.

Public Methods

fn abs(self) -> Self
fn sqrt(self) -> Self
fn sin(self) -> Self
fn cos(self) -> Self
fn tan(self) -> Self
fn asin(self) -> Self
fn acos(self) -> Self
fn atan2(self, other: Self) -> Self
fn is_finite(self) -> bool
fn max(self, other: Self) -> Self
fn min(self, other: Self) -> Self
fn abs(self) -> Self
fn sqrt(self) -> Self
fn sin(self) -> Self
fn cos(self) -> Self
fn tan(self) -> Self
fn asin(self) -> Self
fn acos(self) -> Self
fn atan2(self, other: Self) -> Self
fn is_finite(self) -> bool
fn max(self, other: Self) -> Self
fn min(self, other: Self) -> Self
fn abs(self) -> Self
fn sqrt(self) -> Self
fn sin(self) -> Self
fn cos(self) -> Self
fn tan(self) -> Self
fn asin(self) -> Self
fn acos(self) -> Self
fn atan2(self, other: Self) -> Self
fn is_finite(self) -> bool
fn max(self, other: Self) -> Self
fn min(self, other: Self) -> Self

Associated Functions

const ZERO: Self
const ONE: Self
const TWO: Self
const HALF: Self
const PI: Self
const EPSILON: Self
const TOLERANCE: Self
const INVERSE_TOLERANCE: Self
fn from_f64(value: f64) -> Self
fn from_f64(value: f64) -> Self
fn from_f64(value: f64) -> Self

Public Method Documentation

fn abs( self ) -> Self
No public source comment is attached to this declaration.
fn sqrt( self ) -> Self
No public source comment is attached to this declaration.
fn sin( self ) -> Self
No public source comment is attached to this declaration.
fn cos( self ) -> Self
No public source comment is attached to this declaration.
fn tan( self ) -> Self
No public source comment is attached to this declaration.
fn asin( self ) -> Self
No public source comment is attached to this declaration.
fn acos( self ) -> Self
No public source comment is attached to this declaration.
fn atan2( self, other: Self ) -> Self
No public source comment is attached to this declaration.
fn is_finite( self ) -> bool
No public source comment is attached to this declaration.
fn max( self, other: Self ) -> Self
No public source comment is attached to this declaration.
fn min( self, other: Self ) -> Self
No public source comment is attached to this declaration.
fn abs( self ) -> Self
No public source comment is attached to this declaration.
fn sqrt( self ) -> Self
No public source comment is attached to this declaration.
fn sin( self ) -> Self
No public source comment is attached to this declaration.
fn cos( self ) -> Self
No public source comment is attached to this declaration.
fn tan( self ) -> Self
No public source comment is attached to this declaration.
fn asin( self ) -> Self
No public source comment is attached to this declaration.
fn acos( self ) -> Self
No public source comment is attached to this declaration.
fn atan2( self, other: Self ) -> Self
No public source comment is attached to this declaration.
fn is_finite( self ) -> bool
No public source comment is attached to this declaration.
fn max( self, other: Self ) -> Self
No public source comment is attached to this declaration.
fn min( self, other: Self ) -> Self
No public source comment is attached to this declaration.
fn abs( self ) -> Self
No public source comment is attached to this declaration.
fn sqrt( self ) -> Self
No public source comment is attached to this declaration.
fn sin( self ) -> Self
No public source comment is attached to this declaration.
fn cos( self ) -> Self
No public source comment is attached to this declaration.
fn tan( self ) -> Self
No public source comment is attached to this declaration.
fn asin( self ) -> Self
No public source comment is attached to this declaration.
fn acos( self ) -> Self
No public source comment is attached to this declaration.
fn atan2( self, other: Self ) -> Self
No public source comment is attached to this declaration.
fn is_finite( self ) -> bool
No public source comment is attached to this declaration.
fn max( self, other: Self ) -> Self
No public source comment is attached to this declaration.
fn min( self, other: Self ) -> Self
No public source comment is attached to this declaration.
const ZERO: Self
No public source comment is attached to this declaration.
const ONE: Self
No public source comment is attached to this declaration.
const TWO: Self
No public source comment is attached to this declaration.
const HALF: Self
No public source comment is attached to this declaration.
const PI: Self
No public source comment is attached to this declaration.
const EPSILON: Self
No public source comment is attached to this declaration.
const TOLERANCE: Self
No public source comment is attached to this declaration.
const INVERSE_TOLERANCE: Self
No public source comment is attached to this declaration.
fn from_f64( value: f64 ) -> Self
No public source comment is attached to this declaration.
fn from_f64( value: f64 ) -> Self
No public source comment is attached to this declaration.
fn from_f64( value: f64 ) -> Self
No public source comment is attached to this declaration.