Skip to main content

Crate burbomath

Crate burbomath 

Source

Modules§

camera
indices
physics
range

Macros§

non_neg
positive

Structs§

Angle
Complex
DeltaAngle
FitIntoRangeError
FitIntoRangeInclusiveError
LerpIntegrator
Matrix
NegError
NonNeg
Cannot store negative numbers
NotPositiveError
Point
Positive
Cannot store negative numbers
Rational
Rect
Size
Vector

Traits§

Abs
AbsAsNonNeg
ApplyRationalPrecision
Atan2
Clamp
Cos
DegToRad
Floor
IsNeg
IsPositive
MinusOne
One
Pi
RadToDeg
RemEuclid
Round
SignedSq
SignedSqrt
Sin
Sq
Sqrt
Two
Zero

Functions§

clamp_into_range
fit_into_range
fit_into_range_inclusive
lerp
lerp2
Second version of lerp. Both versions work the same with integers and real numbers but result may differ when working with other types. The main differance it that here t is copied instead of a. One or another version may be prefered depending on cloning ability of V and T types.
map_into_range
map_into_range_inclusive
sign