FloatScalar

Trait FloatScalar 

Source
pub trait FloatScalar: Scalar {
    // Required methods
    fn infinity() -> Self;
    fn tsqrt(self) -> Self;
    fn tsin(self) -> Self;
    fn tcos(self) -> Self;
    fn ttan(self) -> Self;
    fn tacos(self) -> Self;
}
Expand description

Trait for floating-point scalars with transcendental functions.

Extends the base Scalar trait with operations specific to floating-point numbers, including trigonometric functions and square root.

§Implementation Note

These functions link to external C math libraries (libm on Unix, MSVCRT on Windows) since they’re not available in no_std Rust.

Required Methods§

Source

fn infinity() -> Self

Source

fn tsqrt(self) -> Self

Source

fn tsin(self) -> Self

Source

fn tcos(self) -> Self

Source

fn ttan(self) -> Self

Source

fn tacos(self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FloatScalar for f32

Source§

fn infinity() -> f32

Source§

fn tsqrt(self) -> f32

Source§

fn tsin(self) -> f32

Source§

fn tcos(self) -> f32

Source§

fn ttan(self) -> f32

Source§

fn tacos(self) -> f32

Source§

impl FloatScalar for f64

Source§

fn infinity() -> f64

Source§

fn tsqrt(self) -> f64

Source§

fn tsin(self) -> f64

Source§

fn tcos(self) -> f64

Source§

fn ttan(self) -> f64

Source§

fn tacos(self) -> f64

Implementors§