Module vec

Module vec 

Source
Expand description

Real and projective vectors.

TODO

Structs§

Vector
A generic vector type. Represents an element of a vector space or a module, a generalization of a vector space where the scalars can be integers (technically, the scalar type can be any ring-like type).

Functions§

splat
Returns a vector with all components equal to a scalar.
vec2
Returns a real 2-vector with components x and y.
vec3
Returns a real 3-vector with components x, y, and z.

Type Aliases§

ProjVec3
A f32 4-vector in the projective 3-space over ℝ, aka P3(ℝ).
Vec2
A 2-vector with f32 components.
Vec3
A 3-vector with f32 components.
Vec2i
A 2-vector with i32 components.
Vec3i
A 3-vector with i32 components.