Expand description
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:
| Any | 2 | 3 | 4 | |
|---|---|---|---|---|
| Any | GVec | GVec2 | GVec3 | GVec4 |
| Signed | SignedVec | SignedVec2 | SignedVec3 | SignedVec4 |
| Float | FloatVec | FloatVec2 | FloatVec3 | FloatVec4 |
| Int | IntVec | IntVec2 | IntVec3 | IntVec4 |
| Signed int | SIntVec | SIntVec2 | SIntVec3 | SIntVec4 |
| Unsigned int | UIntVec | UIntVec2 | UIntVec3 | UIntVec4 |
As well as for concrete types of any length:
I8Vec, U8Vec, I16Vec, U16Vec, I32Vec, U32Vec, I64Vec, U64Vec, USizeVec, F32Vec, F64Vec
BVec is also provided to cover boolean vectors.
Traits are implemented for the appropriate glam types.
Traits§
- BVec
- Vector of any length whose elements are
bool. - F32Vec
- Vector of any length whose elements are
f32. - F64Vec
- Vector of any length whose elements are
f64. - Float
Vec - Vector of any length whose elements are a floating-point type.
- Float
Vec2 - Vector of length 2 whose elements are a floating-point type.
- Float
Vec3 - Vector of length 3 whose elements are a floating-point type.
- Float
Vec4 - Vector of length 4 whose elements are a floating-point type.
- GVec
- Generic vector of any length.
- GVec2
- Generic vector of length 2.
- GVec3
- Generic vector of length 3.
- GVec4
- Generic vector of length 4.
- I8Vec
- Vector of any length whose elements are
i8. - 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.
- SInt
Vec2 - Vector of length 2 whose elements are a signed integer type.
- SInt
Vec3 - Vector of length 3 whose elements are a signed integer type.
- SInt
Vec4 - Vector of length 4 whose elements are a signed integer type.
- Signed
Vec - Vector of any length whose elements are a signed type.
- Signed
Vec2 - Vector of length 2 whose elements are a signed type.
- Signed
Vec3 - Vector of length 3 whose elements are a signed type.
- Signed
Vec4 - Vector of length 4 whose elements are a signed type.
- U8Vec
- Vector of any length whose elements are
u8. - 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.
- UInt
Vec2 - Vector of length 2 whose elements are an unsigned integer type.
- UInt
Vec3 - Vector of length 3 whose elements are an unsigned integer type.
- UInt
Vec4 - Vector of length 4 whose elements are an unsigned integer type.
- USize
Vec - Vector of any length whose elements are
usize.