Add operator= to Vector3 and Color
This commit is contained in:
parent
e5601e7f43
commit
6de49ae679
2 changed files with 25 additions and 0 deletions
|
@ -17,6 +17,8 @@ struct Vector3
|
|||
Vector3();
|
||||
Vector3(float x, float y, float z);
|
||||
|
||||
Vector3 &operator=(const Vector3 &v);
|
||||
|
||||
Vector3 operator+(Vector3 v) const;
|
||||
Vector3 operator*(float a) const;
|
||||
Vector3 operator-(Vector3 v) const;
|
||||
|
@ -51,6 +53,8 @@ struct Color
|
|||
Color();
|
||||
Color(float r, float g, float b, float a);
|
||||
|
||||
Color &operator=(const Color &c);
|
||||
|
||||
static const Color Black;
|
||||
static const Color White;
|
||||
static const Color Red;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue