From 80129677ee19822049a3d560e9144b5bba293142 Mon Sep 17 00:00:00 2001 From: wer8888 <91093536+plagakit@users.noreply.github.com> Date: Sat, 30 Mar 2024 00:58:35 -0400 Subject: [PATCH] Add project & reject methods to Vector3 --- include/Vector3.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/Vector3.hpp b/include/Vector3.hpp index 2d0218ac..a0a93dc5 100644 --- a/include/Vector3.hpp +++ b/include/Vector3.hpp @@ -244,6 +244,14 @@ class Vector3 : public ::Vector3 { return Vector3Perpendicular(*this); } + Vector3 Project(const ::Vector3& vector3) const { + return Vector3Project(*this, vector3); + } + + Vector3 Reject(const ::Vector3& vector3) const { + return Vector3Reject(*this, vector3); + } + void OrthoNormalize(::Vector3* vector3) { Vector3OrthoNormalize(this, vector3); }