Exemplo n.º 1
0
 /**
 * Division operator for Vector2<T>.
 */
 Vector2<T> operator /(const Vector2<T>& i_Other) const
 {
     if(!i_Other.Contains((T)0))
     {
         return new Vector2<T>(m_X / i_Other.m_X,
                               m_Y / i_Other.m_Y);
     }
     else
     {
         return *this;
     }
 }