コード例 #1
0
ファイル: float4.cpp プロジェクト: truongascii/MathGeoLib
bool MUST_USE_RESULT float4::AreOrthonormal(const float4 &a, const float4 &b, const float4 &c, float epsilon)
{
	return a.IsPerpendicular(b, epsilon) &&
		a.IsPerpendicular(c, epsilon) &&
		b.IsPerpendicular(c, epsilon) &&
		a.IsNormalized(epsilon*epsilon) &&
		b.IsNormalized(epsilon*epsilon) &&
		c.IsNormalized(epsilon*epsilon);
}
コード例 #2
0
ファイル: float4.cpp プロジェクト: truongascii/MathGeoLib
bool MUST_USE_RESULT float4::AreOrthogonal(const float4 &a, const float4 &b, const float4 &c, float epsilon)
{
	return a.IsPerpendicular(b, epsilon) &&
	       a.IsPerpendicular(c, epsilon) &&
	       b.IsPerpendicular(c, epsilon);
}