Crates.io | glam-traits |
lib.rs | glam-traits |
version | 0.2.0 |
source | src |
created_at | 2024-03-02 12:34:22.571868 |
updated_at | 2024-10-21 09:24:33.38889 |
description | Traits for the vectors in glam. |
homepage | |
repository | https://github.com/Ababwa/glam-traits |
max_upload_size | |
id | 1159673 |
size | 55,867 |
Traits for the vectors in glam.
There are traits for the following characteristics:
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:
I16Vec
, U16Vec
, I32Vec
, U32Vec
, I64Vec
, U64Vec
, F32Vec
, F64Vec
GBVec
is also provided to cover boolean vectors.
Traits are implemented for the appropriate glam types.