Match and link CloseEnough

This commit is contained in:
Phillip Stephens 2022-10-05 16:25:10 -07:00
parent 45c5450376
commit 02297fee2d
1 changed files with 12 additions and 0 deletions

View 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);
}