diff options
author | mattkae <mattkae@protonmail.com> | 2022-10-09 11:27:49 -0400 |
---|---|---|
committer | mattkae <mattkae@protonmail.com> | 2022-10-09 11:27:49 -0400 |
commit | f6f3a4bad025e65542cd518b551ba0cc3e1898b3 (patch) | |
tree | fcf233743eff7192b6c1c1190bb0f6751789368a /themes/mathlib.cpp | |
parent | 22483b72217040dcc61b68ce2bb28be1ee9e6e19 (diff) |
A much cuter bunny theme
Diffstat (limited to 'themes/mathlib.cpp')
-rw-r--r-- | themes/mathlib.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/themes/mathlib.cpp b/themes/mathlib.cpp index 702d86c..9e86833 100644 --- a/themes/mathlib.cpp +++ b/themes/mathlib.cpp @@ -271,6 +271,11 @@ Vector4 Vector4::toNormalizedColor() { return fromColor(x, y, z, w); } + +Vector3 Vector4::toVector3() { + return { x, y, z }; +} + float Vector4::length() { return sqrtf(x * x + y * y + z * z + w * w); } |