Defines a ray.
More...
Defines a ray.
Definition at line 10 of file RayD.cs.
Creates a new instance of Ray.
- Parameters
-
position | The starting point of the Ray. |
direction | Unit vector describing the direction of the Ray. |
Definition at line 25 of file RayD.cs.
bool VRageMath.RayD.Equals |
( |
RayD |
other | ) |
|
|
inline |
Determines whether the specified Ray is equal to the current Ray.
- Parameters
-
other | The Ray to compare with the current Ray. |
Definition at line 59 of file RayD.cs.
override bool VRageMath.RayD.Equals |
( |
object |
obj | ) |
|
|
inline |
Determines whether two instances of Ray are equal.
- Parameters
-
obj | The Object to compare with the current Ray. |
Definition at line 71 of file RayD.cs.
override int VRageMath.RayD.GetHashCode |
( |
| ) |
|
|
inline |
Gets the hash code for this instance.
Definition at line 82 of file RayD.cs.
void VRageMath.RayD.Intersects |
( |
ref BoundingBoxD |
box, |
|
|
out double? |
result |
|
) |
| |
|
inline |
Checks whether the current Ray intersects a BoundingBox.
- Parameters
-
box | The BoundingBox to check for intersection with. |
result | [OutAttribute] Distance at which the ray intersects the BoundingBox or null if there is no intersection. |
Definition at line 112 of file RayD.cs.
double VRageMath.RayD.Intersects |
( |
PlaneD |
plane | ) |
|
|
inline |
Determines whether this Ray intersects a specified Plane.
- Parameters
-
plane | The Plane with which to calculate this Ray's intersection. |
Definition at line 133 of file RayD.cs.
void VRageMath.RayD.Intersects |
( |
ref PlaneD |
plane, |
|
|
out double? |
result |
|
) |
| |
|
inline |
Determines whether this Ray intersects a specified Plane.
- Parameters
-
plane | The Plane with which to calculate this Ray's intersection. |
result | [OutAttribute] The distance at which this Ray intersects the specified Plane, or null if there is no intersection. |
Definition at line 153 of file RayD.cs.
void VRageMath.RayD.Intersects |
( |
ref BoundingSphere |
sphere, |
|
|
out double? |
result |
|
) |
| |
|
inline |
Checks whether the current Ray intersects a BoundingSphere.
- Parameters
-
sphere | The BoundingSphere to check for intersection with. |
result | [OutAttribute] Distance at which the ray intersects the BoundingSphere or null if there is no intersection. |
Definition at line 205 of file RayD.cs.
static bool VRageMath.RayD.operator!= |
( |
RayD |
a, |
|
|
RayD |
b |
|
) |
| |
|
inlinestatic |
Determines whether two instances of Ray are not equal.
- Parameters
-
a | The object to the left of the inequality operator. |
b | The object to the right of the inequality operator. |
Definition at line 47 of file RayD.cs.
static bool VRageMath.RayD.operator== |
( |
RayD |
a, |
|
|
RayD |
b |
|
) |
| |
|
inlinestatic |
Determines whether two instances of Ray are equal.
- Parameters
-
a | The object to the left of the equality operator. |
b | The object to the right of the equality operator. |
Definition at line 35 of file RayD.cs.
override string VRageMath.RayD.ToString |
( |
| ) |
|
|
inline |
Returns a String that represents the current Ray.
Definition at line 90 of file RayD.cs.
Unit vector specifying the direction the Ray is pointing.
Definition at line 19 of file RayD.cs.
Specifies the starting point of the Ray.
Definition at line 15 of file RayD.cs.
The documentation for this struct was generated from the following file: