ona/source/coral/math.cpp

41 lines
549 B
C++
Raw Normal View History

2023-02-19 17:50:29 +01:00
export module coral.math;
2023-02-18 20:40:12 +01:00
2023-02-19 17:50:29 +01:00
import coral;
2023-02-18 20:40:12 +01:00
2023-02-19 17:50:29 +01:00
export namespace coral {
2023-02-18 20:40:12 +01:00
/**
* Two-component vector type backed by 32-bit floating point values.
*/
struct vector2 {
/**
* "X" axis spatial component.
*/
f32 x;
/**
* "Y" axis spatial component.
*/
f32 y;
};
/**
* Three-component vector type backed by 32-bit floating point values.
*/
struct vector3 {
/**
* "X" axis spatial component.
*/
f32 x;
/**
* "Y" axis spatial component.
*/
f32 y;
/**
* "Z" axis spatial component.
*/
f32 z;
};
}