convex

package
v0.0.0-...-706fec5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL