Ray Members

The following tables list the members exposed by the Ray type.

Public Constructors

Name Description
Public Method Ray Creates a new instance of Ray.

Public Fields

Name Description
Public Field Direction Unit vector specifying the direction the Ray is pointing.
Public Field Position Specifies the starting point of the Ray.

Public Methods

Name Description
Public Method Equals Overloaded. Determines whether two instances of Ray are equal.
Public Method GetHashCode Gets the hash code for this instance.
Public Method GetType (Inherited from Object.)
Public Method Intersects Overloaded. Checks whether the Ray intersects a specified plane or bounding volume.
Public Method Static op_Equality Determines whether two instances of Ray are equal.
Public Method Static op_Inequality Determines whether two instances of Ray are not equal.
Public Method ToString Returns a String that represents the current Ray.

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)

See Also

Reference

Ray Structure
Microsoft.Xna.Framework Namespace