Crate glam_traits

Source
Expand description

This crate provides traits for the vectors in glam.

There are traits for the following characteristics:

  • “Any”
  • Signed
  • Float
  • Int
  • Signed int
  • Unsigned int

For lengths “any”, 2, 3 and 4:

As well as for concrete types of any length:

I16Vec, U16Vec, I32Vec, U32Vec, I64Vec, U64Vec, F32Vec, F64Vec

GBVec is also provided to cover boolean vectors.

Traits are implemented for the appropriate glam types.

Traits§

F32Vec
Vector of any length whose elements are f32.
F64Vec
Vector of any length whose elements are f64.
FloatVec
Vector of any length whose elements are a floating-point type.
FloatVec2
Vector of length 2 whose elements are a floating-point type.
FloatVec3
Vector of length 3 whose elements are a floating-point type.
FloatVec4
Vector of length 4 whose elements are a floating-point type.
GBVec
Boolean vector of any length. trait.
GVec
Generic vector of any length.
GVec2
Generic vector of length 2.
GVec3
Generic vector of length 3.
GVec4
Generic vector of length 4.
I16Vec
Vector of any length whose elements are i16.
I32Vec
Vector of any length whose elements are i32.
I64Vec
Vector of any length whose elements are i64.
IntVec
Vector of any length whose elements are an integer type.
IntVec2
Vector of length 2 whose elements are an integer type.
IntVec3
Vector of length 3 whose elements are an integer type.
IntVec4
Vector of length 4 whose elements are an integer type.
SIntVec
Vector of any length whose elements are a signed integer type.
SIntVec2
Vector of length 2 whose elements are a signed integer type.
SIntVec3
Vector of length 3 whose elements are a signed integer type.
SIntVec4
Vector of length 4 whose elements are a signed integer type.
SignedVec
Vector of any length whose elements are a signed type.
SignedVec2
Vector of length 2 whose elements are a signed type.
SignedVec3
Vector of length 3 whose elements are a signed type.
SignedVec4
Vector of length 4 whose elements are a signed type.
U16Vec
Vector of any length whose elements are u16.
U32Vec
Vector of any length whose elements are u32.
U64Vec
Vector of any length whose elements are u64.
UIntVec
Vector of any length whose elements are an unsigned integer type.
UIntVec2
Vector of length 2 whose elements are an unsigned integer type.
UIntVec3
Vector of length 3 whose elements are an unsigned integer type.
UIntVec4
Vector of length 4 whose elements are an unsigned integer type.