public boolean isEquivalent ( CrystalTransform other ) { Matrix4d mul = new Matrix4d ( ) ; mul . mul ( this . matTransform , other . matTransform ) ; if ( mul . epsilonEquals ( IDENTITY , 0.0001 ) ) { return true ; } return false ; }
Returns true if the given CrystalTransform is equivalent to this one . Two crystal transforms are equivalent if one is the inverse of the other i . e . their transformation matrices multiplication is equal to the identity .