Implementing Vector3 Unit Tests
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user