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