Click or drag to resize
DigitalRuneGjk Class
The Gilbert-Johnson-Keerthi (GJK) algorithm for computing closest points of convex objects.
Inheritance Hierarchy

Namespace: DigitalRune.Geometry.Collisions.Algorithms
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public class Gjk : CollisionAlgorithm

The Gjk type exposes the following members.

Constructors
  NameDescription
Public methodGjk
Initializes a new instance of the Gjk class.
Top
Methods
  NameDescription
Public methodComputeCollision
Computes the collision. - This method should only be used by CollisionAlgorithm instances!
(Overrides CollisionAlgorithmComputeCollision(ContactSet, CollisionQueryType).)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetClosestPoints
Gets the closest points of two collision objects.
(Inherited from CollisionAlgorithm.)
Public methodGetContacts
Gets the contact information of two possibly touching collision objects.
(Inherited from CollisionAlgorithm.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetTimeOfImpact
Gets the time of impact between two moving objects.
(Inherited from CollisionAlgorithm.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHaveContact
Determines whether two collision objects are in contact.
(Inherited from CollisionAlgorithm.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdateClosestPoints
Performs a collision query to update the closest-point information in the contact set.
(Inherited from CollisionAlgorithm.)
Public methodUpdateContacts
Performs a collision query to update the contact information in the contact set.
(Inherited from CollisionAlgorithm.)
Top
Properties
  NameDescription
Public propertyCollisionDetection
Gets the collision detection service.
(Inherited from CollisionAlgorithm.)
Top
Remarks
The GJK algorithm cannot compute contacts of penetrating objects. Both shapes must implement a support mapping. That means this algorithm can only be called for shapes derived from ConvexShapes. It will throw an exception if it is called for other objects, for example a PlaneShape.
See Also