1
0
forked from josh/j3ml

Implementing Vector3 Unit Tests

This commit is contained in:
2024-01-02 16:29:19 -05:00
parent 0620c8aea5
commit 09922ac0bd
7 changed files with 298 additions and 14 deletions

View File

@@ -36,8 +36,6 @@ public:
void SetY(float newY);
void SetZ(float newZ);
bool IsWithinMarginOfError(const Vector3& rhs, float margin=0.001f) const;
bool IsNormalized(float epsilonSq = 1e-5f) const;
bool IsZero(float epsilonSq = 1e-6f) const;
@@ -68,10 +66,7 @@ public:
// Returns the length of the vector, which is sqrt(x^2 + y^2 + z^2)
float Magnitude() const;
static float Magnitude(const Vector3& of)
{
}
static float Magnitude(const Vector3& of);
// Returns a float value equal to the magnitudes of the two vectors multiplied together and then multiplied by the cosine of the angle between them.
// For normalized vectors, dot returns 1 if they point in exactly the same direction,