Documentation ¶
Index ¶
- Constants
- type Circ
- type Collider
- type Collision
- func Collides(s Collider, other Collider) (bool, Collision)
- func TestCircleCircle(circleA Circ, circleB Circ) (bool, Collision)
- func TestCircleLine(circle Circ, line Lin) (bool, Collision)
- func TestCirclePolygon(circle Circ, polygon Poly) (bool, Collision)
- func TestCircleRect(circle Circ, rect Rect) (bool, Collision)
- func TestDotCircle(dot Dot, circle Circ) (bool, Collision)
- func TestDotDot(dotA Dot, dotB Dot) (bool, Collision)
- func TestDotLine(dot Dot, line Lin) (bool, Collision)
- func TestDotPolygon(dot Dot, poly Poly) (bool, Collision)
- func TestDotRect(dot Dot, rect Rect) (bool, Collision)
- func TestLineLine(lin1, lin2 Lin) (bool, Collision)
- func TestPolygonLine(poly Poly, lin Lin) (bool, Collision)
- func TestPolygonPolygon(polyA Poly, polyB Poly) (bool, Collision)
- func TestRectLine(rect Rect, lin Lin) (bool, Collision)
- func TestRectPolygon(rect Rect, polygon Poly) (bool, Collision)
- func TestRectRect(rectA Rect, rectB Rect) (bool, Collision)
- type ConcreteShape
- type Dot
- type Lin
- type Poly
- type Primative
- type Rect
- type Shape
Constants ¶
View Source
const ( Nothing shape = iota Point Line Circle Rectangle Polygon )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collider ¶
func NewCollider ¶
type ConcreteShape ¶
type ConcreteShape struct {
// contains filtered or unexported fields
}
func NewShape ¶
func NewShape(kind shape) *ConcreteShape
func (*ConcreteShape) Type ¶
func (cs *ConcreteShape) Type() shape
type Poly ¶
type Poly struct { Primative // contains filtered or unexported fields }
func NewPolygon ¶
func NewPolygonFromLines ¶
func NewPolygonFromLines(lines []line) Poly
type Primative ¶
func NewPrimative ¶
Click to show internal directories.
Click to hide internal directories.