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
|
|
@ -8,11 +8,6 @@ class C44Matrix;
|
|||
|
||||
class C3Vector {
|
||||
public:
|
||||
// Member variables
|
||||
float x = 0.0f;
|
||||
float y = 0.0f;
|
||||
float z = 0.0f;
|
||||
|
||||
enum : uint32_t {
|
||||
eComponents = 3
|
||||
};
|
||||
|
|
@ -32,6 +27,10 @@ class C3Vector {
|
|||
static C3Vector ProjectionOnPlane(const C3Vector& v, const C3Vector& normal);
|
||||
static C3Vector NearestOnPlane(const C3Vector& p, const C3Vector& onplane, const C3Vector& normal);
|
||||
|
||||
// Member variables
|
||||
float x = 0.0f;
|
||||
float y = 0.0f;
|
||||
float z = 0.0f;
|
||||
|
||||
// Member functions
|
||||
C3Vector() = default;
|
||||
|
|
@ -47,7 +46,7 @@ class C3Vector {
|
|||
: x(x)
|
||||
, y(y)
|
||||
, z(z) {};
|
||||
C3Vector(float a)
|
||||
explicit C3Vector(float a)
|
||||
: x(a)
|
||||
, y(a)
|
||||
, z(a) {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue