manifold

package
v0.0.0-...-344f55e Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2014 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClippingManifoldSolver

type ClippingManifoldSolver struct{}

func (*ClippingManifoldSolver) GetManifold

func (c *ClippingManifoldSolver) GetManifold(penetration *narrowphase.Penetration, convex1 geometry.Convexer, transform1 *geometry.Transform, convex2 geometry.Convexer, transform2 *geometry.Transform, manifold *Manifold) bool

type IndexedManifoldPointId

type IndexedManifoldPointId struct {
	// contains filtered or unexported fields
}

func NewIndexedManifoldPointID

func NewIndexedManifoldPointID(referenceEdge, incidentEdge, incidentVertex int) *IndexedManifoldPointId

func NewIndexedManifoldPointIDBool

func NewIndexedManifoldPointIDBool(referenceEdge, incidentEdge, incidentVertex int, flipped bool) *IndexedManifoldPointId

func (*IndexedManifoldPointId) GetIncidentEdge

func (i *IndexedManifoldPointId) GetIncidentEdge() int

func (*IndexedManifoldPointId) GetIncidentVertex

func (i *IndexedManifoldPointId) GetIncidentVertex() int

func (*IndexedManifoldPointId) GetReferenceEdge

func (i *IndexedManifoldPointId) GetReferenceEdge() int

func (*IndexedManifoldPointId) IsFlipped

func (i *IndexedManifoldPointId) IsFlipped() bool

type Manifold

type Manifold struct {
	// contains filtered or unexported fields
}

func NewManifold

func NewManifold() *Manifold

func NewManifoldManifoldPointsVector2

func NewManifoldManifoldPointsVector2(points []*ManifoldPoint, normal *geometry.Vector2) *Manifold

func (*Manifold) Clear

func (m *Manifold) Clear()

func (*Manifold) GetNormal

func (m *Manifold) GetNormal() *geometry.Vector2

func (*Manifold) GetPoints

func (m *Manifold) GetPoints() []*ManifoldPoint

func (*Manifold) SetNormal

func (m *Manifold) SetNormal(normal *geometry.Vector2)

func (*Manifold) SetPoints

func (m *Manifold) SetPoints(points []*ManifoldPoint)

type ManifoldPoint

type ManifoldPoint struct {
	// contains filtered or unexported fields
}

func NewManifoldPoint

func NewManifoldPoint() *ManifoldPoint

func NewManifoldPointInterfaceVector2Float64

func NewManifoldPointInterfaceVector2Float64(id interface{}, point *geometry.Vector2, depth float64) *ManifoldPoint

func (*ManifoldPoint) GetDepth

func (m *ManifoldPoint) GetDepth() float64

func (*ManifoldPoint) GetID

func (m *ManifoldPoint) GetID() interface{}

func (*ManifoldPoint) GetPoint

func (m *ManifoldPoint) GetPoint() *geometry.Vector2

func (*ManifoldPoint) SetDepth

func (m *ManifoldPoint) SetDepth(depth float64)

func (*ManifoldPoint) SetID

func (m *ManifoldPoint) SetID(id interface{})

func (*ManifoldPoint) SetPoint

func (m *ManifoldPoint) SetPoint(point *geometry.Vector2)

type ManifoldPointIDDistance

type ManifoldPointIDDistance struct{}

type ManifoldSolver

type ManifoldSolver interface {
	GetManifold(penetration *narrowphase.Penetration, convex1 *geometry.Convexer, transform1 *geometry.Transform, convex2 *geometry.Convexer, transform2 *geometry.Transform, manifold *Manifold) bool
}

Jump to

Keyboard shortcuts

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