diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-01-30 22:31:34 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-01-30 22:31:34 +0000 |
| commit | 34150385d8db82ab8de7eeba06c51a43ba59ec6e (patch) | |
| tree | 5ebdcf9aff9a029009999d5ed72e92727ebbdd6e /code | |
| parent | 0ca1b4612c35c649d16476aa67462835249145e8 (diff) | |
Change vector memory layout and operations; `for in` vector.
Diffstat (limited to 'code')
| -rw-r--r-- | code/demo.odin | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/code/demo.odin b/code/demo.odin index 21cfb6f63..61516e5b7 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -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); + } + } } |