Expand description

Math types and helpers.

Consists of re-exported glam types with some additions.

Modules

bool vector mask types.

f32 vector, quaternion and matrix types.

f64 vector, quaternion and matrix types.

i32 vector types.

Traits adding swizzle methods to all vector types.

u32 vector types.

Macros

Creates a DMat2 from two column vectors that can be used to initialize a constant value.

Creates a DMat3 from three column vectors that can be used to initialize a constant value.

Creates a DMat4 from four column vectors that can be used to initialize a constant value.

Creates a DQuat from x, y, z and w values that can be used to initialize a constant value.

Creates a DVec2 that can be used to initialize a constant value.

Creates a DVec3 that can be used to initialize a constant value.

Creates a DVec4 that can be used to initialize a constant value.

Creates a IVec2 that can be used to initialize a constant value.

Creates a IVec3 that can be used to initialize a constant value.

Creates a IVec4 that can be used to initialize a constant value.

Creates a Mat2 from two column vectors that can be used to initialize a constant value.

Creates a Mat3 from three column vectors that can be used to initialize a constant value.

Creates a Mat4 from four column vectors that can be used to initialize a constant value.

Creates a Quat from x, y, z and w values that can be used to initialize a constant value.

Creates a UVec2 that can be used to initialize a constant value.

Creates a UVec3 that can be used to initialize a constant value.

Creates a UVec4 that can be used to initialize a constant value.

Creates a Vec2 that can be used to initialize a constant value.

Creates a Vec3 that can be used to initialize a constant value.

Creates a Vec3A that can be used to initialize a constant value.

Creates a Vec4 that can be used to initialize a constant value.

Structs

A 2-dimensional boolean vector.

A 3-dimensional boolean vector.

A 4-dimensional boolean vector.

A 2x2 column major matrix.

A 3x3 column major matrix.

A 4x4 column major matrix.

A quaternion representing an orientation.

A 2-dimensional vector.

A 3-dimensional vector.

A 4-dimensional vector.

A 2-dimensional vector.

A 3-dimensional vector.

A 4-dimensional vector.

A 2x2 column major matrix.

A 3x3 column major matrix.

A 4x4 column major matrix.

A quaternion representing an orientation.

A 2D rectangle, defined by its top-left corner, width and height.

A 2-dimensional vector.

A 3-dimensional vector.

A 4-dimensional vector.

A 2-dimensional vector.

A 3-dimensional vector without SIMD support.

A 3-dimensional vector.

A 4-dimensional vector.

Traits

Swizzle methods for 2-dimensional vector types.

Swizzle methods for 3-dimensional vector types.

Swizzle methods for 3-dimensional vector types.

Functions

Converts 2d cartesian coordinates to 2d polar coordinates.

Returns value, bounded in range [min, max].

Creates a 2x2 matrix from two column vectors.

Creates a 3x3 matrix from three column vectors.

Creates a 4x4 matrix from four column vectors.

Creates a quaternion from x, y, z and w values.

Creates a 2-dimensional vector.

Creates a 3-dimensional vector.

Creates a 4-dimensional vector.

Creates a 2-dimensional vector.

Creates a 3-dimensional vector.

Creates a 4-dimensional vector.

Creates a 2x2 matrix from two column vectors.

Creates a 3x3 matrix from three column vectors.

Creates a 4x4 matrix from four column vectors.

Converts 2d polar coordinates to 2d cartesian coordinates.

Creates a quaternion from x, y, z and w values.

Creates a 2-dimensional vector.

Creates a 3-dimensional vector.

Creates a 4-dimensional vector.

Creates a 2-dimensional vector.

Creates a 3-dimensional vector.

Creates a 3-dimensional vector.

Creates a 4-dimensional vector.

Type Definitions