Overloaded basic math funcs (double and float variants). Use real_t rather than float or double in generic functions (core/math) whenever possible.
Also inlined some more math functions.
This commit is contained in:
@ -99,7 +99,7 @@ real_t Plane::distance_to(const Vector3 &p_point) const {
|
||||
|
||||
bool Plane::has_point(const Vector3 &p_point,real_t _epsilon) const {
|
||||
|
||||
float dist=normal.dot(p_point) - d;
|
||||
real_t dist=normal.dot(p_point) - d;
|
||||
dist=ABS(dist);
|
||||
return ( dist <= _epsilon);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user