mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-05-13 13:11:20 +00:00
Match and link CloseEnough
Former-commit-id: 02297fee2da3a5bfb251dc035b503e43df907efb
This commit is contained in:
parent
a578b055a2
commit
fd92b6bd05
12
src/Kyoto/Math/CloseEnough.cpp
Normal file
12
src/Kyoto/Math/CloseEnough.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
#include "Kyoto/Math/CloseEnough.hpp"
|
||||
|
||||
static CVector2f svector2_Identity(0.f, 0.f);
|
||||
|
||||
bool close_enough(const CVector3f& a, const CVector3f& b, float epsilon) {
|
||||
return close_enough(a.GetX(), b.GetX(), epsilon) && close_enough(a.GetY(), b.GetY(), epsilon) &&
|
||||
close_enough(a.GetZ(), b.GetZ(), epsilon);
|
||||
}
|
||||
|
||||
bool close_enough(const CVector2f& a, const CVector2f& b, float epsilon) {
|
||||
return close_enough(a.GetX(), b.GetX(), epsilon) && close_enough(a.GetY(), b.GetY(), epsilon);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user