Versions in this module Expand all Collapse all v0 v0.0.0 May 10, 2021 Changes in this version + type Affine2D struct + func NewAffine2D(sx, hx, ox, hy, sy, oy float32) Affine2D + func (A Affine2D) Mul(B Affine2D) (r Affine2D) + func (a Affine2D) Elems() (sx, hx, ox, hy, sy, oy float32) + func (a Affine2D) Invert() Affine2D + func (a Affine2D) Offset(offset Point) Affine2D + func (a Affine2D) Rotate(origin Point, radians float32) Affine2D + func (a Affine2D) Scale(origin, factor Point) Affine2D + func (a Affine2D) Shear(origin Point, radiansX, radiansY float32) Affine2D + func (a Affine2D) String() string + func (a Affine2D) Transform(p Point) Point + type Point struct + X float32 + Y float32 + func Pt(x, y float32) Point + func (p Point) Add(p2 Point) Point + func (p Point) In(r Rectangle) bool + func (p Point) Mul(s float32) Point + func (p Point) String() string + func (p Point) Sub(p2 Point) Point + type Rectangle struct + Max Point + Min Point + func Rect(x0, y0, x1, y1 float32) Rectangle + func (r Rectangle) Add(p Point) Rectangle + func (r Rectangle) Canon() Rectangle + func (r Rectangle) Dx() float32 + func (r Rectangle) Dy() float32 + func (r Rectangle) Empty() bool + func (r Rectangle) Intersect(s Rectangle) Rectangle + func (r Rectangle) Size() Point + func (r Rectangle) String() string + func (r Rectangle) Sub(p Point) Rectangle + func (r Rectangle) Union(s Rectangle) Rectangle