Defines a ray.
More...
Defines a ray.
Definition at line 10 of file Ray.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 Ray.cs.
bool VRageMath.Ray.Equals |
( |
Ray |
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 Ray.cs.
override bool VRageMath.Ray.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 Ray.cs.
override int VRageMath.Ray.GetHashCode |
( |
| ) |
|
|
inline |
Gets the hash code for this instance.
Definition at line 82 of file Ray.cs.
void VRageMath.Ray.Intersects |
( |
ref BoundingBox |
box, |
|
|
out float? |
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 Ray.cs.
float VRageMath.Ray.Intersects |
( |
Plane |
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 Ray.cs.
void VRageMath.Ray.Intersects |
( |
ref Plane |
plane, |
|
|
out float? |
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 Ray.cs.
void VRageMath.Ray.Intersects |
( |
ref BoundingSphere |
sphere, |
|
|
out float? |
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 Ray.cs.
static bool VRageMath.Ray.operator!= |
( |
Ray |
a, |
|
|
Ray |
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 Ray.cs.
static bool VRageMath.Ray.operator== |
( |
Ray |
a, |
|
|
Ray |
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 Ray.cs.
override string VRageMath.Ray.ToString |
( |
| ) |
|
|
inline |
Returns a String that represents the current Ray.
Definition at line 90 of file Ray.cs.
Unit vector specifying the direction the Ray is pointing.
Definition at line 19 of file Ray.cs.
Specifies the starting point of the Ray.
Definition at line 15 of file Ray.cs.
The documentation for this struct was generated from the following file: