mirror of
https://github.com/thunderbrewhq/typhoon.git
synced 2025-12-12 02:22:30 +00:00
feat(vector): add element constructor for C4Vector
This commit is contained in:
parent
83934acd71
commit
ad2fe0f0f0
1 changed files with 8 additions and 0 deletions
|
|
@ -8,6 +8,14 @@ class C4Vector {
|
||||||
float y = 0.0f;
|
float y = 0.0f;
|
||||||
float z = 0.0f;
|
float z = 0.0f;
|
||||||
float w = 0.0f;
|
float w = 0.0f;
|
||||||
|
|
||||||
|
// Member functions
|
||||||
|
C4Vector() = default;
|
||||||
|
C4Vector(float x, float y, float z, float w)
|
||||||
|
: x(x)
|
||||||
|
, y(y)
|
||||||
|
, z(z)
|
||||||
|
, w(w) {};
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue