Crate swift_vec

source ·
Expand description

The root file of the library. Nothing special here.

Modules§

  • 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.
  • 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.
  • 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.
  • 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.