Space Engineers
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
VRageMath.RayD Struct Reference

Defines a ray. More...

Inheritance diagram for VRageMath.RayD:

Public Member Functions

 RayD (Vector3D position, Vector3D direction)
 Creates a new instance of Ray. More...
 
bool Equals (RayD other)
 Determines whether the specified Ray is equal to the current Ray. More...
 
override bool Equals (object obj)
 Determines whether two instances of Ray are equal. More...
 
override int GetHashCode ()
 Gets the hash code for this instance. More...
 
override string ToString ()
 Returns a String that represents the current Ray. More...
 
double Intersects (BoundingBoxD box)
 Checks whether the Ray intersects a specified BoundingBox. More...
 
void Intersects (ref BoundingBoxD box, out double?result)
 Checks whether the current Ray intersects a BoundingBox. More...
 
double Intersects (BoundingFrustumD frustum)
 Checks whether the Ray intersects a specified BoundingFrustum. More...
 
double Intersects (PlaneD plane)
 Determines whether this Ray intersects a specified Plane. More...
 
void Intersects (ref PlaneD plane, out double?result)
 Determines whether this Ray intersects a specified Plane. More...
 
double Intersects (BoundingSphereD sphere)
 Checks whether the Ray intersects a specified BoundingSphere. More...
 
void Intersects (ref BoundingSphere sphere, out double?result)
 Checks whether the current Ray intersects a BoundingSphere. More...
 

Static Public Member Functions

static bool operator== (RayD a, RayD b)
 Determines whether two instances of Ray are equal. More...
 
static bool operator!= (RayD a, RayD b)
 Determines whether two instances of Ray are not equal. More...
 

Public Attributes

Vector3D Position
 Specifies the starting point of the Ray. More...
 
Vector3D Direction
 Unit vector specifying the direction the Ray is pointing. More...
 

Detailed Description

Defines a ray.

Definition at line 10 of file RayD.cs.

Constructor & Destructor Documentation

VRageMath.RayD.RayD ( Vector3D  position,
Vector3D  direction 
)
inline

Creates a new instance of Ray.

Parameters
positionThe starting point of the Ray.
directionUnit vector describing the direction of the Ray.

Definition at line 25 of file RayD.cs.

Member Function Documentation

bool VRageMath.RayD.Equals ( RayD  other)
inline

Determines whether the specified Ray is equal to the current Ray.

Parameters
otherThe 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
objThe 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.

double VRageMath.RayD.Intersects ( BoundingBoxD  box)
inline

Checks whether the Ray intersects a specified BoundingBox.

Parameters
boxThe BoundingBox to check for intersection with the Ray.

Definition at line 103 of file RayD.cs.

void VRageMath.RayD.Intersects ( ref BoundingBoxD  box,
out double?  result 
)
inline

Checks whether the current Ray intersects a BoundingBox.

Parameters
boxThe 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 ( BoundingFrustumD  frustum)
inline

Checks whether the Ray intersects a specified BoundingFrustum.

Parameters
frustumThe BoundingFrustum to check for intersection with the Ray.

Definition at line 121 of file RayD.cs.

double VRageMath.RayD.Intersects ( PlaneD  plane)
inline

Determines whether this Ray intersects a specified Plane.

Parameters
planeThe 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
planeThe 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.

double VRageMath.RayD.Intersects ( BoundingSphereD  sphere)
inline

Checks whether the Ray intersects a specified BoundingSphere.

Parameters
sphereThe BoundingSphere to check for intersection with the Ray.

Definition at line 182 of file RayD.cs.

void VRageMath.RayD.Intersects ( ref BoundingSphere  sphere,
out double?  result 
)
inline

Checks whether the current Ray intersects a BoundingSphere.

Parameters
sphereThe 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
aThe object to the left of the inequality operator.
bThe 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
aThe object to the left of the equality operator.
bThe 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.

Member Data Documentation

Vector3D VRageMath.RayD.Direction

Unit vector specifying the direction the Ray is pointing.

Definition at line 19 of file RayD.cs.

Vector3D VRageMath.RayD.Position

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: