mirror of
https://github.com/slendidev/smath.git
synced 2025-12-11 12:59:53 +02:00
Compare commits
9 Commits
271f04581c
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 1a42238a41 | |||
| a5d669235e | |||
| 2d86e02038 | |||
| b5e0aabe37 | |||
| e32204db0c | |||
| 37f085ee36 | |||
| 13288eda01 | |||
| bf1c2ee0c8 | |||
| f6e2bc01b1 |
@@ -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));
|
||||
|
||||
1450
include/smath.hpp
1450
include/smath.hpp
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user