mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-14 07:23:26 +00:00
patch
This commit is contained in:
@@ -132,7 +132,7 @@ namespace uml
|
|||||||
return sqrt(x * x + y * y + z * z);
|
return sqrt(x * x + y * y + z * z);
|
||||||
}
|
}
|
||||||
|
|
||||||
float Vector3::LengthSqr(void) const
|
float Vector3::LengthSqr() const
|
||||||
{
|
{
|
||||||
return (x * x + y * y + z * z);
|
return (x * x + y * y + z * z);
|
||||||
}
|
}
|
||||||
@@ -143,7 +143,7 @@ namespace uml
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Vector3 Vector3::operator-(void) const
|
Vector3 Vector3::operator-() const
|
||||||
{
|
{
|
||||||
return {-x, -y, -z};
|
return {-x, -y, -z};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user