1
0

Added extra divide operator to Vector3.

The multiply operator had one for both a different vector and a number, but the divide operator didn't.
This commit is contained in:
STRWarrior 2015-04-07 13:25:55 +02:00
parent 514dadc3c4
commit 13b96a40ea

View File

@ -244,6 +244,15 @@ public:
); );
} }
inline Vector3<T> operator / (const Vector3<T> & a_Rhs)
{
return Vector3<T>(
x / a_Rhs.x,
y / a_Rhs.y,
z / a_Rhs.z
);
}
inline Vector3<T> operator * (T a_v) const inline Vector3<T> operator * (T a_v) const
{ {
return Vector3<T>( return Vector3<T>(