Ray Structure |
Namespace: DigitalRune.Geometry.Shapes
The Ray type exposes the following members.
Name | Description | |
---|---|---|
Ray(RayShape) |
Initializes a new instance of Ray from a RayShape.
| |
Ray(Vector3F, Vector3F, Single) |
Initializes a new instance of Line with the given origin and direction.
|
Name | Description | |
---|---|---|
Equals(Object) | (Overrides ValueTypeEquals(Object).) | |
Equals(Ray) |
Determines whether the specified Ray is equal to the current
Ray.
| |
GetHashCode |
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | (Overrides ValueTypeToString.) |
Name | Description | |
---|---|---|
Equality |
Tests if two Rays are equal.
| |
Inequality |
Tests if two Rays are different.
|
Name | Description | |
---|---|---|
Direction |
The normalized direction of the ray.
| |
Length |
The finite length of the ray.
| |
Origin |
The origin of the ray.
|
This is a lightweight structure. To define a ray shape for an IGeometricObject use RayShape.
Two Rays are considered as equal if Origin, Direction and Length are equal.