HasRotation is true if the matrix has a rotation or skewing component.
()
| 826 | |
| 827 | // HasRotation is true if the matrix has a rotation or skewing component. |
| 828 | func (m Matrix) HasRotation() bool { |
| 829 | return !Equal(m[0][1], 0.0) || !Equal(m[1][0], 0.0) |
| 830 | } |
| 831 | |
| 832 | // IsRigid is true if the matrix is orthogonal and consists of only isometric transformations: translation, rotation, and reflection. |
| 833 | func (m Matrix) IsRigid() bool { |