Change vector memory layout and operations; for in vector.
This commit is contained in:
1 parent
0ca1b4612c
commit
34150385d8
9 files changed
+433
-296
No files matched your search
@@ -10,4 +10,20 @@ main :: proc() {
|
||||
fmt.print(p);
|
||||
}
|
||||
fmt.println();
|
||||
|
||||
{
|
||||
Vec3 :: [vector 3]f32;
|
||||
|
||||
x := Vec3{1, 2, 3};
|
||||
y := Vec3{4, 5, 6};
|
||||
fmt.println(x < y);
|
||||
fmt.println(x + y);
|
||||
fmt.println(x - y);
|
||||
fmt.println(x * y);
|
||||
fmt.println(x / y);
|
||||
|
||||
for i in x {
|
||||
fmt.println(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user