Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.9.0.0 (1.9.3.9490)
Syntax
| C# |
|---|
[SerializableAttribute] public class RayShape : ConvexShape |
| Visual Basic |
|---|
<SerializableAttribute> _ Public Class RayShape _ Inherits ConvexShape |
| Visual C++ |
|---|
[SerializableAttribute] public ref class RayShape : public ConvexShape |
Remarks
This class can be used if an IGeometricObject with a ray shape is needed. Use the Ray structure instead if you need a lightweight representation of a ray (avoids allocating memory on the heap).
In contrast to a real ray, a RayShape object has a finite length! Infinite rays should not be used because finite rays are faster and produce less numerical problems.
Important: Do not put rays into composite shapes (for example CompositeShape). If a composite shape collides with another object, all contacts of this object pair are merged into a single ContactSet. Thus, ray hits of child rays of the composite shape are "merged" with normal contacts of other child shapes; the result is undefined.
Inheritance Hierarchy
DigitalRune.Geometry.Shapes..::..Shape
DigitalRune.Geometry.Shapes..::..ConvexShape
DigitalRune.Geometry.Shapes..::..RayShape