Click or drag to resize
DigitalRuneCollisionAlgorithmMatrixItem Property (Type, Type)
Gets or sets the CollisionAlgorithm for the specified shape types.

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

Parameters

typeA
Type: SystemType
The first shape type.
typeB
Type: SystemType
The second shape type.

Property Value

Type: CollisionAlgorithm
The collision algorithm.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalue is .
ArgumentNullExceptiontypeA is .
ArgumentNullExceptiontypeB is .
KeyNotFoundException No CollisionAlgorithm is registered for the given shape pair.
ArgumentExceptionThe specified type does not inherit from Shape.
Remarks
Collision algorithms can be defined per pair of shape types (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