bettercmath.misc

Miscelaneous math functions and definitions.

Members

Aliases

deg2rad
alias deg2rad = degreesToRadians

Undocumented in source.

rad2deg
alias rad2deg = radiansToDegrees

Undocumented in source.

Functions

degreesToRadians
FloatType!T degreesToRadians(T degrees)

Convert angle from degrees to radians.

lerp
T lerp(T from, T to, U amount)

Linearly interpolates values from and to by amount.

lerp
T lerp(T[2] fromTo, U amount)

Linearly interpolates the values from fromTo by amount.

radiansToDegrees
FloatType!T radiansToDegrees(T radians)

Convert angle from radias to degrees.

Templates

FloatType
template FloatType(T)

Templated alias for a floating point type correspondent with T.

Meta