Beispiel #1
0
	float Vector2::Angle(const Vector2& a_v2d) const
	{
		return (float)acos((DotProd(Vector2(x, y), a_v2d)) / (Vector2(x, y).Modulus() * a_v2d.Modulus()));
	}
Beispiel #2
0
	//Extra Methods
	float Angle(const Vector2& lhs, const Vector2& rhs)
	{
		return (float)acos((DotProd(lhs, rhs)) / (lhs.Modulus() * rhs.Modulus()));
	}