Compare commits

...

9 Commits

Author SHA1 Message Date
1a42238a41 Formatting + new packing related functions
Signed-off-by: Slendi <slendi@socopon.com>
2025-12-11 12:55:04 +02:00
a5d669235e Fix some math
Signed-off-by: Slendi <slendi@socopon.com>
2025-12-07 00:11:21 +02:00
2d86e02038 Translate
Signed-off-by: Slendi <slendi@socopon.com>
2025-12-06 23:01:49 +02:00
b5e0aabe37 Create unpacking function for vectors
Signed-off-by: Slendi <slendi@socopon.com>
2025-12-06 21:37:46 +02:00
e32204db0c Add default case to shut compilers up
Signed-off-by: Slendi <slendi@socopon.com>
2025-12-04 17:42:13 +02:00
37f085ee36 Quick matrix aliases
Signed-off-by: Slendi <slendi@socopon.com>
2025-12-04 17:17:00 +02:00
13288eda01 Matrix stuff
Signed-off-by: Slendi <slendi@socopon.com>
2025-12-04 16:30:30 +02:00
bf1c2ee0c8 Add Matrices
Signed-off-by: Slendi <slendi@socopon.com>
2025-11-28 19:02:52 +02:00
f6e2bc01b1 Add quaternions
Signed-off-by: Slendi <slendi@socopon.com>
2025-11-28 16:14:49 +02:00
2 changed files with 1042 additions and 411 deletions

View File

@@ -39,6 +39,9 @@ int main() {
std::println("std::get<1>(v): {}", std::get<1>(v));
auto [x, y, z] = v;
std::println("Bindings: [{}, {}, {}]", x, y, z);
float x1{}, y1{}, z1{};
v.unpack(x1, y1, z1);
std::println("Unpacked: {}, {}, {}", x1, y1, z1);
// Let's mix and match!
Vec<6> v3(v, 7, swizzle<"zy">(v2));

File diff suppressed because it is too large Load Diff