aboutsummaryrefslogtreecommitdiff
path: root/primedev/core/math
diff options
context:
space:
mode:
authorNorthstar <northstar@northstar.tf>2024-08-26 15:18:56 +0200
committerNorthstar <northstar@northstar.tf>2024-08-26 15:18:56 +0200
commit6e9792f3651d1e0c7045c5d67312c10f91ce6962 (patch)
tree728dc0d4ac2d1c0d8f5a8490e8c45ea69494f927 /primedev/core/math
parentf6915dc331685574289e7b45e5d2d36b530f50f3 (diff)
downloadNorthstarLauncher-6e9792f3651d1e0c7045c5d67312c10f91ce6962.tar.gz
NorthstarLauncher-6e9792f3651d1e0c7045c5d67312c10f91ce6962.zip
Format project
Diffstat (limited to 'primedev/core/math')
-rw-r--r--primedev/core/math/vector.h42
1 files changed, 36 insertions, 6 deletions
diff --git a/primedev/core/math/vector.h b/primedev/core/math/vector.h
index 0face732..ea1de65e 100644
--- a/primedev/core/math/vector.h
+++ b/primedev/core/math/vector.h
@@ -13,9 +13,24 @@ class Vector3
public:
float x, y, z;
- Vector3(float _x, float _y, float _z) : x(_x), y(_y), z(_z) {}
- Vector3(float _f) : x(_f), y(_f), z(_f) {}
- Vector3() : x(0.0f), y(0.0f), z(0.0f) {}
+ Vector3(float _x, float _y, float _z)
+ : x(_x)
+ , y(_y)
+ , z(_z)
+ {
+ }
+ Vector3(float _f)
+ : x(_f)
+ , y(_f)
+ , z(_f)
+ {
+ }
+ Vector3()
+ : x(0.0f)
+ , y(0.0f)
+ , z(0.0f)
+ {
+ }
inline bool IsValid() { return IsFinite(x) && IsFinite(y) && IsFinite(z); }
@@ -302,9 +317,24 @@ public:
float y;
float z;
- QAngle(float _x, float _y, float _z) : x(_x), y(_y), z(_z) {}
- QAngle(float _f) : x(_f), y(_f), z(_f) {}
- QAngle() : x(0.0f), y(0.0f), z(0.0f) {}
+ QAngle(float _x, float _y, float _z)
+ : x(_x)
+ , y(_y)
+ , z(_z)
+ {
+ }
+ QAngle(float _f)
+ : x(_f)
+ , y(_f)
+ , z(_f)
+ {
+ }
+ QAngle()
+ : x(0.0f)
+ , y(0.0f)
+ , z(0.0f)
+ {
+ }
Vector3 GetNormal() const;