m3sh.linalg

Basic vector math.

Functions

angle(v, w[, a, deg])

Angle between vectors.

clamp(x, lo, hi)

Clamp value to range.

cross(u, v)

Cross product.

cross_mat(u)

Cross product matrix.

norm(u)

Length of vector.

rotate(x, a, phi[, sinphi])

Rotate vector about axis.

rotation(v, w, a)

Rotation parameters.

sqrd(u)

Squared length of vector.

unit(u)

Vector normalization.

unit_inplace(u)

In-place vector normalization.