Documentation ¶
Index ¶
- func Area(pts []maths.Pt) (a float64)
- func BBox(pts []maths.Pt) (bb [4]float64)
- func Centroid(pts []maths.Pt) (center maths.Pt)
- func Paired(pts []maths.Pt) ([][2]maths.Pt, error)
- func Reverse(a []maths.Pt) []maths.Pt
- func RotatePos(pts []maths.Pt, pos int)
- func RotateToLowestsFirst(pts []maths.Pt)
- func SinArea(pts []maths.Pt) (a float64)
- func SlopeIntercept(pt1, pt2 maths.Pt) (m, b float64, defined bool)
- func SortAndUnique(pts []maths.Pt) (spts []maths.Pt)
- type BoundingBox
- type ByXY
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RotateToLowestsFirst ¶
Types ¶
type BoundingBox ¶
type BoundingBox [4]float64
func (BoundingBox) Area ¶
func (bb BoundingBox) Area() float64
func (BoundingBox) ContainBB ¶
func (bb BoundingBox) ContainBB(bb1 [4]float64) bool
func (BoundingBox) ContainsLine ¶
func (bb BoundingBox) ContainsLine(l maths.Line) bool
func (BoundingBox) LREdges ¶
func (bb BoundingBox) LREdges() [4]maths.Line
Source Files ¶
Click to show internal directories.
Click to hide internal directories.