mirror of
https://github.com/thunderbrewhq/typhoon.git
synced 2025-12-12 10:32:29 +00:00
feat(matrix): add C33Matrix class
This commit is contained in:
parent
f3b5a84428
commit
95bbe515dd
4 changed files with 163 additions and 11 deletions
|
|
@ -5,10 +5,6 @@
|
|||
|
||||
class C2Vector {
|
||||
public:
|
||||
// Member variables
|
||||
float x = 0.0f;
|
||||
float y = 0.0f;
|
||||
|
||||
enum : uint32_t {
|
||||
eComponents = 2
|
||||
};
|
||||
|
|
@ -21,13 +17,16 @@ class C2Vector {
|
|||
static float Dot(const C2Vector& l, const C2Vector& r);
|
||||
static float Cross(const C2Vector& l, const C2Vector& r);
|
||||
|
||||
// Member variables
|
||||
float x = 0.0f;
|
||||
float y = 0.0f;
|
||||
|
||||
// Member functions
|
||||
C2Vector() = default;
|
||||
C2Vector(float x, float y)
|
||||
: x(x)
|
||||
, y(y) {};
|
||||
C2Vector(float a)
|
||||
explicit C2Vector(float a)
|
||||
: x(a)
|
||||
, y(a) {};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue