Tweeker Commit (Have Fun Reviewing This)
This commit is contained in:
@@ -145,6 +145,8 @@ public:
|
||||
//float DIstance(const Triangle&) const;
|
||||
|
||||
float DistanceSquared(const Vector3& to) const;
|
||||
// Function Alias for DistanceSquared
|
||||
float DistanceSq(const Vector3& to) const { return DistanceSquared(to); }
|
||||
static float DistanceSquared(const Vector3& from, const Vector3& to);
|
||||
|
||||
float Length() const;
|
||||
@@ -183,7 +185,6 @@ public:
|
||||
Vector3 Lerp(const Vector3& goal, float alpha) const;
|
||||
static Vector3 Lerp(const Vector3& lhs, const Vector3& rhs, float alpha);
|
||||
|
||||
|
||||
/// Returns the angle between this vector and the specified vector, in radians.
|
||||
/** @note This function takes into account that this vector or the other vector can be unnormalized, and normalizes the computations.
|
||||
If you are computing the angle between two normalized vectors, it is better to use AngleBetweenNorm().
|
||||
@@ -232,13 +233,13 @@ public:
|
||||
bool Equals(const Vector3& rhs, float epsilon = 1e-3f) const;
|
||||
bool Equals(float _x, float _y, float _z, float epsilon = 1e-3f) const;
|
||||
|
||||
|
||||
Vector3 &operator =(const Vector3& rhs);
|
||||
Vector3& operator+=(const Vector3& rhs);
|
||||
Vector3& operator-=(const Vector3& rhs);
|
||||
Vector3& operator*=(float scalar);
|
||||
Vector3& operator/=(float scalar);
|
||||
|
||||
void Set(float d, float d1, float d2);
|
||||
};
|
||||
|
||||
static Vector3 operator*(float lhs, const Vector3& rhs)
|
||||
|
Reference in New Issue
Block a user