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:
parent
514dadc3c4
commit
13b96a40ea
@ -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>(
|
||||||
|
Loading…
Reference in New Issue
Block a user