Skip to content

Commit 1d43610

Browse files
authored
Merge pull request #312 from plagakit/master
Add project & reject methods to Vector3
2 parents 03cf2f9 + 8012967 commit 1d43610

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/Vector3.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,14 @@ class Vector3 : public ::Vector3 {
244244
return Vector3Perpendicular(*this);
245245
}
246246

247+
Vector3 Project(const ::Vector3& vector3) const {
248+
return Vector3Project(*this, vector3);
249+
}
250+
251+
Vector3 Reject(const ::Vector3& vector3) const {
252+
return Vector3Reject(*this, vector3);
253+
}
254+
247255
void OrthoNormalize(::Vector3* vector3) {
248256
Vector3OrthoNormalize(this, vector3);
249257
}

0 commit comments

Comments
 (0)