Skip to main content

Ops

Trait Ops 

Source
pub trait Ops {
    // Required methods
    fn sqrt(x: f32) -> f32;
    fn acos(x: f32) -> f32;
}
Expand description

Provides the math operations required by the tangent space algorithm but which aren’t included in Rust’s core crate. With the std feature enabled, a (default) implementation is provided.

Required Methods§

Source

fn sqrt(x: f32) -> f32

Provides a sqrt implementation for f32.

Source

fn acos(x: f32) -> f32

Provides a acos implementation for f32.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§