mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-28 18:30:06 +00:00
Move Raw_Complex/Quaternion types to base:runtime
This commit is contained in:
@@ -470,6 +470,12 @@ Raw_Soa_Pointer :: struct {
|
|||||||
index: int,
|
index: int,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Raw_Complex64 :: struct {real, imag: f32}
|
||||||
|
Raw_Complex128 :: struct {real, imag: f64}
|
||||||
|
Raw_Quaternion128 :: struct {imag, jmag, kmag: f32, real: f32}
|
||||||
|
Raw_Quaternion256 :: struct {imag, jmag, kmag: f64, real: f64}
|
||||||
|
Raw_Quaternion128_Vector_Scalar :: struct {vector: [3]f32, scalar: f32}
|
||||||
|
Raw_Quaternion256_Vector_Scalar :: struct {vector: [3]f64, scalar: f64}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -11,13 +11,6 @@ Raw_Dynamic_Array :: runtime.Raw_Dynamic_Array
|
|||||||
Raw_Map :: runtime.Raw_Map
|
Raw_Map :: runtime.Raw_Map
|
||||||
Raw_Soa_Pointer :: runtime.Raw_Soa_Pointer
|
Raw_Soa_Pointer :: runtime.Raw_Soa_Pointer
|
||||||
|
|
||||||
Raw_Complex64 :: struct {real, imag: f32}
|
|
||||||
Raw_Complex128 :: struct {real, imag: f64}
|
|
||||||
Raw_Quaternion128 :: struct {imag, jmag, kmag: f32, real: f32}
|
|
||||||
Raw_Quaternion256 :: struct {imag, jmag, kmag: f64, real: f64}
|
|
||||||
Raw_Quaternion128_Vector_Scalar :: struct {vector: [3]f32, scalar: f32}
|
|
||||||
Raw_Quaternion256_Vector_Scalar :: struct {vector: [3]f64, scalar: f64}
|
|
||||||
|
|
||||||
make_any :: proc "contextless" (data: rawptr, id: typeid) -> any {
|
make_any :: proc "contextless" (data: rawptr, id: typeid) -> any {
|
||||||
return transmute(any)Raw_Any{data, id}
|
return transmute(any)Raw_Any{data, id}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user