Module vek::ops

source · []
Expand description

Operations defined by this crate, such as MulAdd, Lerp, Clamp, and Wrap.

Traits

A scalar or vector that can be constrained to be between two values (inclusive).

A scalar or vector that can be constrained to be between 0 and 1 (inclusive).

A scalar or vector that can be constrained to be between -1 and 1 (inclusive).

Trait for types that are suitable for representing a color component value.

A value that can tell whether or not it is between two bounds (inclusive).

A value that can tell whether or not it is between 0 and 1 (inclusive).

A value that can be linearly interpolated.

Fused multiply-add. Computes (self * a) + b with only one rounding error, yielding a more accurate result than an unfused multiply-add.

A value that can be Spherically Linearly interpolated.

A value that can wrap itself around given bounds.

Functions

mul_addDeprecated

Returns (val * mul) + add.

Compares and returns the maximum of two values, using partial ordering.

Compares and returns the minimum of two values, using partial ordering.