2024-02-08 07:50:36 -08:00
|
|
|
package sectr
|
|
|
|
|
2024-02-10 00:40:53 -08:00
|
|
|
import "core:math/linalg"
|
|
|
|
|
|
|
|
Vec2 :: linalg.Vector2f32
|
|
|
|
Vec3 :: linalg.Vector3f32
|
|
|
|
|
2024-02-11 20:00:06 -08:00
|
|
|
Vec2i :: [2]i32
|
|
|
|
Vec3i :: [3]i32
|
2024-02-10 00:40:53 -08:00
|
|
|
|
|
|
|
when false {
|
2024-02-08 07:50:36 -08:00
|
|
|
// TODO(Ed) : Evaluate if this is needed
|
|
|
|
|
2024-02-10 00:40:53 -08:00
|
|
|
Vec2 :: Vec2_f32
|
|
|
|
Vec2_f32 :: struct #raw_union {
|
2024-02-08 13:05:15 -08:00
|
|
|
basis : [2] f32,
|
|
|
|
using components : struct {
|
|
|
|
x, y : f32
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-10 00:40:53 -08:00
|
|
|
// make_vec2 :: proc ( x, y : f32 ) {
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
Vec3 :: Vec3_f32
|
|
|
|
Vec3_f32 :: struct #raw_union {
|
2024-02-08 07:50:36 -08:00
|
|
|
basis : [3] f32,
|
|
|
|
using components : struct {
|
|
|
|
x, y, z : f32
|
|
|
|
}
|
|
|
|
}
|
2024-02-10 00:40:53 -08:00
|
|
|
}
|
2024-02-08 07:50:36 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|