Crate float [−] [src]

Traits for generic floats in game programming

Traits

Cast

Casts into another type.

Float

Convenience trait for floats.

FromPrimitive

Trait for converting from different numeric types

Max

Maximum value.

Min

Minimum value.

One

Number 1.

Radians

Useful constants for radians.

Signum

The sign of the number.

Sqrt

Square root.

Trig

Basic trigonometry functions

Zero

Number 0.