MCPcopy Index your code
hub / github.com/fogleman/ln / NewTransformedShape

Function NewTransformedShape

ln/shape.go:39–41  ·  view source on GitHub ↗
(s Shape, m Matrix)

Source from the content-addressed store, hash-verified

37}
38
39func NewTransformedShape(s Shape, m Matrix) Shape {
40 return &TransformedShape{s, m, m.Inverse()}
41}
42
43func (s *TransformedShape) BoundingBox() Box {
44 return s.Matrix.MulBox(s.Shape.BoundingBox())

Callers 2

Calls 1

InverseMethod · 0.80

Tested by

no test coverage detected