ona/source/core/math.cpp

41 lines
546 B
C++
Raw Normal View History

2023-02-19 17:47:16 +01:00
export module core.math;
2023-02-18 20:40:12 +01:00
import core;
export namespace core {
/**
* 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;
};
}