Beispiel #1
0
	template<class T> inline Vector2<T> TransformState2<T>::Transformed(Vector2<T> vec2) const
	{
		vec2.Rotate(m_rotation);
		vec2*=m_scale;
		vec2+=m_translation;
		return vec2;
	}
Beispiel #2
0
	template<class T> inline void TransformState2<T>::Transform(Vector2<T> &vec2) const
	{
		vec2.Rotate(m_rotation);
		vec2*=m_scale;
		vec2+=m_translation;
	}