Crate lin_alg

Source
Expand description

Vector, matrix, and quaternion data structures and operations.

Module for matrices, vectors, and quaternions, as used in 3D graphics, geometry, robitics, and spacial embedded systems. Similar to the cgmath and glam crates, but with a more transparent API. This elegant lib may also be used as a reference for quaternion operations.

Quaternion operations use the Hamilton (vice JPL) convention.

Modules§

complex_nums
This module contains a Complex number type, and methods for it.
f32
f64

Structs§

BufError

Functions§

linspace
Create a set of values in a given range, with a given number of values. Similar to numpy.linspace. The result terminates one step before the end of the range.
logspace
map_linear
Linearly map an input value to an output
pack_slice
Convert a slice of any type to an array values, for use with SIMD. Padded as required. The result will have approximately 8x fewer elements than the input.