From f6f3a4bad025e65542cd518b551ba0cc3e1898b3 Mon Sep 17 00:00:00 2001 From: mattkae Date: Sun, 9 Oct 2022 11:27:49 -0400 Subject: A much cuter bunny theme --- themes/mathlib.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'themes/mathlib.cpp') 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); } -- cgit v1.2.1