bug fixes

This commit is contained in:
devZoGok
2021-10-19 19:06:40 +03:00
parent 52c59d6879
commit 29cfd4ab4f
+1 -1
View File
@@ -44,7 +44,7 @@ namespace vb01{
float getLength(){return std::sqrt(getLengthSq());}
float dot(Vector3 v){return x*v.x+y*v.y+z*v.z;}
float getAngleBetween(Vector3 v){return std::acos(dot(v));}
float getDistanceFrom(Vector3 v){return (v-*this).getLengthSq();}
float getDistanceFrom(Vector3 v){return (v-*this).getLength();}
Vector3 norm(){return (*this!=Vector3::VEC_ZERO?*this/getLength():Vector3::VEC_ZERO);}
Vector3 cross(Vector3 v){return Vector3(y * v.z - v.y * z, z * v.x - x * v.z, x * v.y - v.x * y);}