Laid Out Headers
This commit is contained in:
@@ -634,4 +634,16 @@ namespace J3ML::LinearAlgebra {
|
||||
return IsRowOrthogonal3(epsilon);
|
||||
}
|
||||
|
||||
bool Matrix4x4::IsColOrthogonal3(float epsilon) const {
|
||||
return GetColumn(0).IsPerpendicular(GetColumn(1), epsilon)
|
||||
&& GetColumn(0).IsPerpendicular(GetColumn(2), epsilon)
|
||||
&& GetColumn(1).IsPerpendicular(GetColumn(2), epsilon);
|
||||
}
|
||||
|
||||
bool Matrix4x4::IsRowOrthogonal3(float epsilon) const {
|
||||
return GetRow(0).IsPerpendicular(GetRow(1), epsilon)
|
||||
&& GetRow(0).IsPerpendicular(GetRow(2), epsilon)
|
||||
&& GetRow(1).IsPerpendicular(GetRow(2), epsilon);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user