Implement Vector2::Abs() and Vector3::Abs()

This commit is contained in:
2024-02-06 16:34:26 -05:00
parent e18a2634de
commit 8fa94c1519
2 changed files with 4 additions and 0 deletions

View File

@@ -31,6 +31,8 @@ namespace J3ML::LinearAlgebra {
void SetX(float newX);
void SetY(float newY);
Vector2 Abs() const;
bool IsWithinMarginOfError(const Vector2& rhs, float margin=0.001f) const;
bool IsNormalized(float epsilonSq = 1e-5f) const;