Implementing Vector3 Unit Tests
This commit is contained in:
@@ -11,7 +11,7 @@ namespace LinearAlgebra {
|
||||
// Constructs a new Vector2 with the value (X, Y)
|
||||
Vector2(float X, float Y);
|
||||
Vector2(const Vector2& rhs); // Copy Constructor
|
||||
Vector2(Vector2&&) = default; // Move Constructor
|
||||
//Vector2(Vector2&&) = default; // Move Constructor
|
||||
|
||||
static const Vector2 Zero;
|
||||
static const Vector2 Up;
|
||||
@@ -80,7 +80,7 @@ namespace LinearAlgebra {
|
||||
Vector2 Lerp(const Vector2& rhs, float alpha) const;
|
||||
// @see Lerp
|
||||
static Vector2 Lerp(const Vector2& lhs, const Vector2& rhs, float alpha);
|
||||
|
||||
// Note: Input vectors MUST be normalized first!
|
||||
float AngleBetween(const Vector2& rhs) const;
|
||||
static float AngleBetween(const Vector2& lhs, const Vector2& rhs);
|
||||
|
||||
@@ -104,12 +104,11 @@ namespace LinearAlgebra {
|
||||
Vector2 Div(float scalar) const;
|
||||
static Vector2 Div(const Vector2& lhs, float rhs);
|
||||
|
||||
|
||||
// Unary operator +
|
||||
Vector2 operator +() const; // TODO: Implement
|
||||
Vector2 operator -() const;
|
||||
// Assigns a vector to another
|
||||
Vector2& operator=(const Vector2&v);
|
||||
|
||||
|
||||
|
||||
Vector2& operator+=(const Vector2& rhs); // Adds a vector to this vector, in-place.
|
||||
|
Reference in New Issue
Block a user