Click or drag to resize
DigitalRuneCollisionAlgorithmMatrixItem Property (IGeometricObject, IGeometricObject)
Gets or sets the CollisionAlgorithm for the specified geometric objects.

Namespace: DigitalRune.Geometry.Collisions
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public CollisionAlgorithm this[
	IGeometricObject geometricObjectA,
	IGeometricObject geometricObjectB
] { get; set; }

Parameters

geometricObjectA
Type: DigitalRune.GeometryIGeometricObject
The first geometric object.
geometricObjectB
Type: DigitalRune.GeometryIGeometricObject
The second geometric object.

Property Value

Type: CollisionAlgorithm
The collision algorithm.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalue is .
ArgumentNullExceptiongeometricObjectA is .
ArgumentNullExceptiongeometricObjectB is .
KeyNotFoundException No CollisionAlgorithm is registered for the given shape pair.
Remarks
Collision algorithms can be defined per pair of shape classes (not per pair of shape instances). If an algorithm is set for [A, B], the same algorithm is automatically set for [B, A].
See Also