Export (0) Print
Expand All

Ray Structure

Defines a ray.

Namespace:  Microsoft.Xna.Framework
Assembly:  Microsoft.Xna.Framework.Math (in Microsoft.Xna.Framework.Math.dll)

public struct Ray

The Ray type exposes the following members.

  NameDescription
Public methodRayCreates a new instance of Ray.
Top

  NameDescription
Public methodEquals(Object)Determines whether two instances of Ray are equal. (Overrides ValueType.Equals(Object).)
Public methodEquals(Ray)Determines whether the specified Ray is equal to the current Ray.
Public methodGetHashCodeGets the hash code for this instance. (Overrides ValueType.GetHashCode().)
Public methodIntersects(BoundingBox)Checks whether the Ray intersects a specified BoundingBox.
Public methodIntersects(BoundingFrustum)Checks whether the Ray intersects a specified BoundingFrustum.
Public methodIntersects(BoundingSphere)Checks whether the Ray intersects a specified BoundingSphere.
Public methodIntersects(Plane)Determines whether this Ray intersects a specified Plane.
Public methodIntersects(BoundingBox, Nullable<Single>)Checks whether the current Ray intersects a BoundingBox.
Public methodIntersects(BoundingSphere, Nullable<Single>)Checks whether the current Ray intersects a BoundingSphere.
Public methodIntersects(Plane, Nullable<Single>)Determines whether this Ray intersects a specified Plane.
Public methodToStringReturns a String that represents the current Ray. (Overrides ValueType.ToString().)
Top

  NameDescription
Public operatorStatic memberEqualityDetermines whether two instances of Ray are equal.
Public operatorStatic memberInequalityDetermines whether two instances of Ray are not equal.
Top

  NameDescription
Public fieldDirectionUnit vector specifying the direction the Ray is pointing.
Public fieldPositionSpecifies the starting point of the Ray.
Top

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft