diff options
author | Jan <sentrycraft123@gmail.com> | 2023-07-25 16:31:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-25 16:31:02 +0200 |
commit | ddb4670354a5f29e6ebd08f625edb2576de700e6 (patch) | |
tree | 34bcfea868b620ad9ba4ea63dec19b5476123c05 /NorthstarDLL/core | |
parent | cf8b267d31dc168673e68e336fd5727aad4e7333 (diff) | |
download | NorthstarLauncher-ddb4670354a5f29e6ebd08f625edb2576de700e6.tar.gz NorthstarLauncher-ddb4670354a5f29e6ebd08f625edb2576de700e6.zip |
Remove Vector3 Constructor (#494)
- Packing was enabled because the compiler may add padding which we don't want.
- Constructors were removed because they were either rather primitive or broken (the `pRawFloats` one).
- Use of constructor was replaced with a simple cast, which works just as well.
Diffstat (limited to 'NorthstarDLL/core')
-rw-r--r-- | NorthstarDLL/core/math/vector.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/NorthstarDLL/core/math/vector.h b/NorthstarDLL/core/math/vector.h index 112fabdf..8684908f 100644 --- a/NorthstarDLL/core/math/vector.h +++ b/NorthstarDLL/core/math/vector.h @@ -13,13 +13,6 @@ union Vector3 float raw[3]; - Vector3() : x(0), y(0), z(0) {} - Vector3(float x, float y, float z) : x(x), y(y), z(z) {} - Vector3(float* pRawFloats) // assumes float[3] => vector - { - memcpy(raw, pRawFloats, sizeof(this)); - } - void MakeValid() { for (auto& fl : raw) |