Operator overload found!

This commit is contained in:
Krzosa Karol
2022-09-29 14:50:48 +02:00
parent 27ed000800
commit 9bb7b0dc96
4 changed files with 65 additions and 34 deletions

View File

@@ -6,9 +6,6 @@ Vec2I :: struct;; x: S64; y: S64
Vec2 :: struct;; x: F32; y: F32
Vec3 :: struct;; x: F32; y: F32; z: F32
"+" :: (a: Vec3, b: Vec3): Vec3
return Vec3_Add(a,b)
Vec3_Cross :: (a: Vec3, b: Vec3): Vec3
result := Vec3{
a.y * b.z - a.z * b.y,