Exemplo n.º 1
0
bool Vector4::operator == ( const Vector4& vectorToEqual ) const
{
	if (CalcLengthSquared() == vectorToEqual.CalcLengthSquared())
	{
		return true;
	}
	else
	{
		return false;
	}
}
Exemplo n.º 2
0
float CalcDistanceSquared( const Vector4& positionA, const Vector4& positionB )
{
	Vector4 outputVec;
	outputVec = positionA - positionB;
	return outputVec.CalcLengthSquared();
}