Documentation ¶
Index ¶
- type BoundingRect
- func (rect *BoundingRect) Add(point Point)
- func (rect *BoundingRect) Center() Point
- func (rect *BoundingRect) Contains(other BoundingRect) bool
- func (rect *BoundingRect) Expand(padding float64)
- func (rect *BoundingRect) Includes(point Point) bool
- func (rect *BoundingRect) IsZero() bool
- func (rect *BoundingRect) Size() (float64, float64)
- type Point
- type Pointable
- type PolarVector
- func (pv PolarVector) AngleDiff(pv2 PolarVector) float64
- func (pv PolarVector) Direction() SectorDirection
- func (pv PolarVector) PointAtLength(l float64) Point
- func (pv PolarVector) PointAtOffset(offset float64) Point
- func (pv PolarVector) Sector(sectorCount int) int
- func (pv PolarVector) ToVector() Vector
- type SectorDirection
- type Vector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoundingRect ¶
func NewBoundingRect ¶
func NewBoundingRect() BoundingRect
func NewPointBoundingRect ¶
func NewPointBoundingRect(point Point) BoundingRect
func (*BoundingRect) Add ¶
func (rect *BoundingRect) Add(point Point)
func (*BoundingRect) Center ¶
func (rect *BoundingRect) Center() Point
func (*BoundingRect) Contains ¶
func (rect *BoundingRect) Contains(other BoundingRect) bool
func (*BoundingRect) Expand ¶
func (rect *BoundingRect) Expand(padding float64)
func (*BoundingRect) Includes ¶
func (rect *BoundingRect) Includes(point Point) bool
func (*BoundingRect) IsZero ¶
func (rect *BoundingRect) IsZero() bool
func (*BoundingRect) Size ¶
func (rect *BoundingRect) Size() (float64, float64)
type PolarVector ¶
func (PolarVector) AngleDiff ¶
func (pv PolarVector) AngleDiff(pv2 PolarVector) float64
func (PolarVector) Direction ¶
func (pv PolarVector) Direction() SectorDirection
func (PolarVector) PointAtLength ¶
func (pv PolarVector) PointAtLength(l float64) Point
func (PolarVector) PointAtOffset ¶
func (pv PolarVector) PointAtOffset(offset float64) Point
func (PolarVector) Sector ¶
func (pv PolarVector) Sector(sectorCount int) int
func (PolarVector) ToVector ¶
func (pv PolarVector) ToVector() Vector
type SectorDirection ¶
type SectorDirection int
const ( DirectionTop SectorDirection = iota DirectionBottom DirectionLeft DirectionRight DirectionMax )
Click to show internal directories.
Click to hide internal directories.