Versions in this module Expand all Collapse all v0 v0.0.1 Mar 10, 2023 Changes in this version + type Point struct + X float64 + Y float64 + func (p Point) Add(op Point) Point + func (p Point) Cross(op Point) float64 + func (p Point) Dot(op Point) float64 + func (p Point) Mul(m float64) Point + func (p Point) Norm() float64 + func (p Point) Normalize() Point + func (p Point) Ortho() Point + func (p Point) String() string + func (p Point) Sub(op Point) Point + type Rect struct + X r1.Interval + Y r1.Interval + func EmptyRect() Rect + func RectFromCenterSize(center, size Point) Rect + func RectFromPoints(pts ...Point) Rect + func (r Rect) AddPoint(p Point) Rect + func (r Rect) AddRect(other Rect) Rect + func (r Rect) ApproxEqual(r2 Rect) bool + func (r Rect) Center() Point + func (r Rect) ClampPoint(p Point) Point + func (r Rect) Contains(other Rect) bool + func (r Rect) ContainsPoint(p Point) bool + func (r Rect) Expanded(margin Point) Rect + func (r Rect) ExpandedByMargin(margin float64) Rect + func (r Rect) Hi() Point + func (r Rect) InteriorContains(other Rect) bool + func (r Rect) InteriorContainsPoint(p Point) bool + func (r Rect) InteriorIntersects(other Rect) bool + func (r Rect) Intersection(other Rect) Rect + func (r Rect) Intersects(other Rect) bool + func (r Rect) IsEmpty() bool + func (r Rect) IsValid() bool + func (r Rect) Lo() Point + func (r Rect) Size() Point + func (r Rect) String() string + func (r Rect) Union(other Rect) Rect + func (r Rect) VertexIJ(i, j int) Point + func (r Rect) Vertices() [4]Point