Click or drag to resize
DigitalRuneCollisionObjectCollectionGet Method
Gets the collision object for the specified geometric object.

Namespace: DigitalRune.Geometry.Collisions
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public CollisionObject Get(
	IGeometricObject geometricObject
)

Parameters

geometricObject
Type: DigitalRune.GeometryIGeometricObject
The IGeometricObject.

Return Value

Type: CollisionObject
The CollisionObject of geometricObject, or if the collision domain does not contain a CollisionObject for geometricObject.
Exceptions
ExceptionCondition
ArgumentNullExceptiongeometricObject is .
Remarks
This method can be used to lookup a CollisionObject by specifying its IGeometricObject. By default, this method performs a linear search over all items to find the CollisionObject which is O(n). The lookup can be speed up by setting EnableLookupTable to . In this case a internal lookup table is created that maps the IGeometricObject object to their CollisionObjects. The lookup when using the internal lookup table is close to O(1).
See Also