Documentation ¶ Index ¶ type Convex func MinkowskiDifference(a Convex, posA vector.Vector, rotA rotator.Rotator, b Convex, ...) *Convex func New(vertices []vector.Vector) *Convex func (c *Convex) Edges() []Edge func (c *Convex) Hull() []vector.Vector func (c *Convex) InHull(position vector.Vector, rotation rotator.Rotator, point vector.Vector) bool func (c *Convex) Support(dir vector.Vector, rot rotator.Rotator) (bestVertex vector.Vector) func (c *Convex) Type() int64 type Edge Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Convex ¶ type Convex struct { // contains filtered or unexported fields } func MinkowskiDifference ¶ func MinkowskiDifference(a Convex, posA vector.Vector, rotA rotator.Rotator, b Convex, posB vector.Vector, rotB rotator.Rotator) *Convex func New ¶ func New(vertices []vector.Vector) *Convex func (*Convex) Edges ¶ func (c *Convex) Edges() []Edge Edge is ccw func (*Convex) Hull ¶ func (c *Convex) Hull() []vector.Vector Hull is ccw func (*Convex) InHull ¶ func (c *Convex) InHull(position vector.Vector, rotation rotator.Rotator, point vector.Vector) bool func (*Convex) Support ¶ func (c *Convex) Support(dir vector.Vector, rot rotator.Rotator) (bestVertex vector.Vector) func (*Convex) Type ¶ func (c *Convex) Type() int64 type Edge ¶ type Edge struct { Start vector.Vector End vector.Vector Normal vector.Vector } Source Files ¶ View all Source files convex.go Click to show internal directories. Click to hide internal directories.