Module pixel_game_lib::vec

source ·
Expand description

Re-export vek types. Vector types.

They do NOT derive PartialOrd and Ord, because it makes no sense for them, and functions such as partial_min and partial_max may give surprising results because of this. They do have element-wise comparison functions though.

Modules

  • Vector types which are marked #[repr(C)].
  • Vector types which are marked #[repr(simd)].

Structs

  • Vector type suited for 2D extents (width and height).
  • Vector type suited for 3D extents (width, height and depth).
  • Vector type suited for RGB color data.
  • Vector type suited for RGBA color data.
  • Opaque type wrapping a hardware-preferred shuffle mask format for 4D vectors.
  • Vector type suited for 2D spatial coordinates.
  • Vector type suited for 3D spatial coordinates.
  • Vector type suited for homogeneous 3D spatial coordinates.