Versions in this module Expand all Collapse all v1 v1.5.1 Jan 13, 2018 v1.5.0 Jan 9, 2018 Changes in this version + func Distance2(x1, y1, x2, y2 float64) float64 + func Distance3(x1, y1, z1, x2, y2, z2 float64) float64 + type Point2 [2]float64 + func AnglePoint(angle float64) Point2 + func RadianPoint(radians float64) Point2 + func (p Point2) Add(ps ...Point2) Point2 + func (p Point2) AngleTo(p2 Point2) float64 + func (p Point2) Dim(i int) float64 + func (p Point2) Distance(p2 Point2) float64 + func (p Point2) Div(ps ...Point2) Point2 + func (p Point2) GreaterOf(ps ...Point2) Point2 + func (p Point2) LesserOf(ps ...Point2) Point2 + func (p Point2) Mul(ps ...Point2) Point2 + func (p Point2) MulConst(fs ...float64) Point2 + func (p Point2) RadiansTo(p2 Point2) float64 + func (p Point2) Sub(ps ...Point2) Point2 + func (p Point2) ToAngle() float64 + func (p Point2) ToRadians() float64 + func (p Point2) ToRect(span float64) Rect2 + func (p Point2) X() float64 + func (p Point2) Y() float64 + type Point3 [3]float64 + func (p Point3) Add(ps ...Point3) Point3 + func (p Point3) Dim(i int) float64 + func (p Point3) Distance(p2 Point3) float64 + func (p Point3) Div(ps ...Point3) Point3 + func (p Point3) GreaterOf(ps ...Point3) Point3 + func (p Point3) LesserOf(ps ...Point3) Point3 + func (p Point3) Mul(ps ...Point3) Point3 + func (p Point3) MulConst(fs ...float64) Point3 + func (p Point3) Sub(ps ...Point3) Point3 + func (p Point3) ToRect(span float64) Rect3 + func (p Point3) X() float64 + func (p Point3) Y() float64 + func (p Point3) Z() float64 + type Rect2 struct + Max Point2 + Min Point2 + func NewBoundingRect2(pts ...Point2) Rect2 + func NewRect2(x, y, x2, y2 float64) Rect2 + func NewRect2WH(x, y, w, h float64) Rect2 + func (r Rect2) Area() float64 + func (r Rect2) Contains(p Point2) bool + func (r Rect2) ContainsRect(r2 Rect2) bool + func (r Rect2) GreaterOf(r2 Rect2) Rect2 + func (r Rect2) H() float64 + func (r Rect2) Intersects(r2 Rect2) bool + func (r Rect2) MaxDimensions() int + func (r Rect2) Midpoint(i int) float64 + func (r Rect2) Perimeter() float64 + func (r Rect2) Span(i int) float64 + func (r Rect2) W() float64 + type Rect3 struct + Max Point3 + Min Point3 + func NewBoundingRect3(pts ...Point3) Rect3 + func NewRect3(x, y, z, x2, y2, z2 float64) Rect3 + func NewRect3WH(x, y, z, w, h, d float64) Rect3 + func (r Rect3) Contains(p Point3) bool + func (r Rect3) ContainsRect(r2 Rect3) bool + func (r Rect3) D() float64 + func (r Rect3) GreaterOf(r2 Rect3) Rect3 + func (r Rect3) H() float64 + func (r Rect3) Intersects(r2 Rect3) bool + func (r Rect3) Margin() float64 + func (r Rect3) MaxDimensions() int + func (r Rect3) Midpoint(i int) float64 + func (r Rect3) Space() float64 + func (r Rect3) Span(i int) float64 + func (r Rect3) W() float64 Incompatible versions in this module v2.0.0+incompatible Feb 7, 2018 v2.0.0-beta.0+incompatible Jan 21, 2018