Skip to main content

Crate burbomath

Crate burbomath 

Source

Modules§

camera
indices
physics
range
time

Macros§

non_neg
positive

Structs§

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

Traits§

Abs
AbsAsNonNeg
ApplyRationalPrecision
Atan
Atan2
BottomLimit
Clamp
Cos
Cube
DegToRad
Floor
FromDurationAsSecs
FromSecs
FromUSize
IsNan
IsNeg
IsPositive
IsZero
Log2
MinusOne
One
Pi
PositiveConstant
Pow
RadToDeg
RemEuclid
Round
SignedSq
SignedSqrt
Sin
Sq
Sqrt
Tan
TopLimit
Two
UnsignedContstant
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
uconst
For shorter