MCPcopy Create free account
hub / github.com/tdewolff/canvas / HasRotation

Method HasRotation

util.go:828–830  ·  view source on GitHub ↗

HasRotation is true if the matrix has a rotation or skewing component.

()

Source from the content-addressed store, hash-verified

826
827// HasRotation is true if the matrix has a rotation or skewing component.
828func (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.
833func (m Matrix) IsRigid() bool {

Callers 1

renderToMethod · 0.80

Calls 1

EqualFunction · 0.85

Tested by

no test coverage detected