Crate swift_vec

Source
Expand description

The root file of the library. Nothing special here.

Modules§

mat
The matrix module contains the definitions of the various matrix types, such as Mat2, Mat3, and Mat4. Also contains global traits and functions that are shared between all matrix types.
prelude
Generally speaking, you’ll want to use the prelude module to get all of the traits and functions you’ll need. This does not include any of the individual types. If you want those, import from the vector and/or rect modules.
rect
The rect module contains the definitions of the various bounding rect types, such as Rect2 and Rect3. Also contains global traits and functions that are shared between all bounding rect types.
scalar
The scalar module contains traits and functions that are added to basic primitive types. While you can import from this module, scalar traits will automatically be imported from the prelude module.
vector
The vector module contains the definitions of the various vector types, such as Vec2, Vec3, and Vec4. Also contains global traits and functions that are shared between all vector types.