Module tri_mesh::math

source ·
Expand description

Linear algebra types for vector calculations. Basically re-export the cgmath library.

Structs

An angle, in degrees.
A 3 x 3, column major matrix
A 4 x 4, column major matrix
An angle, in radians.
A 3-dimensional vector.
A 4-dimensional vector.

Traits

Angles and their associated trigonometric functions.
An array containing elements of type Element
Numbers which have upper and lower bounds
Element-wise arithmetic operations. These are supplied for pragmatic reasons, but will usually fall outside of traditional algebraic properties.
Points in a Euclidean space with an associated space of displacement vectors.
Vectors that also have a dot (or inner) product.
A column-major matrix of arbitrary dimensions.
A type with a distance function between values.
Defines a multiplicative identity element for Self.
A trait for a generic rotation. A rotation is a transformation that creates a circular motion, and preserves at least one point in the space.
A two-dimensional rotation.
A three-dimensional rotation.
A column-major major matrix where the rows and column vectors are of the same dimensions.
A trait representing an affine transformation that can be applied to points or vectors. An affine transformation is one which
Vectors that can be added together and multiplied by scalars.
Defines an additive identity element for Self.

Functions

Constructs a Degrees
Constructs a Radians
Constructs a Vec3
Constructs a Vec4

Type Definitions

Degrees
3x3 matrix.
4x4 matrix.
Radians
Vector with three elements.
Vector with four elements.