Documentation ¶ Index ¶ type Matrix func Identity() Matrix func Rotate(angle float64) Matrix func Scale(sx, sy float64) Matrix func Translate(tx, ty float64) Matrix func (m Matrix) Inverse() (Matrix, error) func (m Matrix) Multiply(o Matrix) Matrix func (m Matrix) Transform(p Point) Point type Point Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Matrix ¶ type Matrix [6]float64 func Identity ¶ func Identity() Matrix func Rotate ¶ func Rotate(angle float64) Matrix func Scale ¶ func Scale(sx, sy float64) Matrix func Translate ¶ func Translate(tx, ty float64) Matrix func (Matrix) Inverse ¶ func (m Matrix) Inverse() (Matrix, error) func (Matrix) Multiply ¶ func (m Matrix) Multiply(o Matrix) Matrix func (Matrix) Transform ¶ func (m Matrix) Transform(p Point) Point type Point ¶ type Point struct{ X, Y float64 } Source Files ¶ View all Source files coords.go Click to show internal directories. Click to hide internal directories.