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