Ray Structure |
public struct Ray : IEquatable<Ray>, IFormattable
The Ray type exposes the following members.
Name | Description | |
---|---|---|
Equals(Object) |
Determines whether the specified Object is equal to this instance.
(Overrides ValueTypeEquals(Object)) | |
Equals(Ray) | Determines whether the specified Vector4 is equal to this instance. | |
Equals(Ray) | Determines whether the specified Vector4 is equal to this instance. | |
FindClosestRay | FindClosestRay is a static method that returns a Ray that goes from ray1 to ray2 and starts on the closest point between two rays. If closest cannot be found, the returned Ray has zero length (its IsValid property is false). | |
GetHashCode |
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode) | |
NormalizeDirection | Normalizes the direction | |
RayIntersectsBox | Determines whether there is an intersection between this ray and a BoundingBox. | |
ToString |
Returns a String that represents this instance.
(Overrides ValueTypeToString) | |
ToString(IFormatProvider) | Returns a String that represents this instance. | |
ToString(String) | Returns a String that represents this instance. | |
ToString(String, IFormatProvider) | Returns a String that represents this instance. | |
Transform | Transforms this ray with the specified matrix. The transformation is done with transforming the ray's position and its direction (direction is transformed without translation and then normalized). |
Name | Description | |
---|---|---|
Equality(Ray, Ray) | Tests for equality between two objects. | |
Inequality(Ray, Ray) | Tests for inequality between two objects. |
Name | Description | |
---|---|---|
Direction | The normalized direction in which the ray points. | |
Position | The position in three dimensional space where the ray starts. |