[][src]Module colorspace::math

Structs

Matrix33

3x3 Matrix type

Traits

Bounded

Numbers which have upper and lower bounds

Float

Generic trait for floating point numbers

One

Defines a multiplicative identity element for Self.

Real

Further constrains what we need from a Scalar to cover just the real numbers in order to be generic for functions like sqrt() that are not defined for integers

Scalar
Zero

Defines an additive identity element for Self.

Functions

abs
acos
asin
atan2
clamp

Clamp x to lie in the range [a, b]

cos
exp
hypot
lerp

Linearly interpolate from a to b by t

pow
powi
sin
sqr
sqrt
tan

Type Definitions

M3f32
M3f64