Versions in this module Expand all Collapse all v0 v0.1.0 Mar 14, 2019 Changes in this version + type ConvexHull struct + func NewConvexHull(geom *geometry.Geometry) *ConvexHull + func (ch *ConvexHull) ClipAgainstHull(chB *ConvexHull, posA, posB *math32.Vector3, quatA, quatB *math32.Quaternion, ...) []collision.Contact + func (ch *ConvexHull) ComputeWorldFaceNormalsAndUniqueEdges(quat *math32.Quaternion) + func (ch *ConvexHull) FaceNormals() []math32.Vector3 + func (ch *ConvexHull) Faces() [][3]math32.Vector3 + func (ch *ConvexHull) FindPenetrationAxis(chB *ConvexHull, posA, posB *math32.Vector3, quatA, quatB *math32.Quaternion) (bool, math32.Vector3) + func (ch *ConvexHull) ProjectOntoWorldAxis(worldAxis, pos *math32.Vector3, quat *math32.Quaternion) (float32, float32) + func (ch *ConvexHull) TestPenetrationAxis(chB *ConvexHull, worldAxis, posA, posB *math32.Vector3, ...) (bool, float32) + func (ch *ConvexHull) UniqueEdges() []math32.Vector3 + func (ch *ConvexHull) WorldFace(face [3]math32.Vector3, pos *math32.Vector3, quat *math32.Quaternion) [3]math32.Vector3 + func (ch *ConvexHull) WorldFaceNormals() []math32.Vector3 + func (ch *ConvexHull) WorldUniqueEdges() []math32.Vector3 + type IShape interface + Area func() float32 + BoundingBox func() math32.Box3 + BoundingSphere func() math32.Sphere + ProjectOntoAxis func(localAxis *math32.Vector3) (float32, float32) + RotationalInertia func(mass float32) math32.Matrix3 + Volume func() float32 + type Plane struct + func NewPlane() *Plane + func (p *Plane) Area() float32 + func (p *Plane) BoundingBox() math32.Box3 + func (p *Plane) BoundingSphere() math32.Sphere + func (p *Plane) Normal() math32.Vector3 + func (p *Plane) ProjectOntoAxis(localAxis *math32.Vector3) (float32, float32) + func (p *Plane) RotationalInertia(mass float32) math32.Matrix3 + func (p *Plane) Volume() float32 + type Shape struct + type Sphere struct + func NewSphere(radius float32) *Sphere + func (s *Sphere) Area() float32 + func (s *Sphere) BoundingBox() math32.Box3 + func (s *Sphere) BoundingSphere() math32.Sphere + func (s *Sphere) ProjectOntoAxis(localAxis *math32.Vector3) (float32, float32) + func (s *Sphere) Radius() float32 + func (s *Sphere) RotationalInertia(mass float32) math32.Matrix3 + func (s *Sphere) SetRadius(radius float32) + func (s *Sphere) Volume() float32