Module scalar

Module scalar 

Source
Expand description

Scalar trait definitions for generic numeric operations.

This module defines traits that extend num-traits for use in mathematical operations throughout the library. It provides a unified interface for both integer and floating-point types.

The module leverages the num-traits crate for basic numeric operations while adding specialized methods needed for 3D math.

Traitsยง

FloatScalar
Trait for floating-point scalars with transcendental functions.
One
Defines a multiplicative identity element for Self.
Scalar
Core scalar trait for numeric types used in the library.
Zero
Defines an additive identity element for Self.