SlimDX Documentation
Ray Structure
NamespacesSlimDXRay
Defines a ray in three dimensions, specified by a starting position and a direction.
Declaration Syntax
C#
[SerializableAttribute]
public struct Ray : IEquatable<Ray>
Members
All Members Constructors Methods Fields



Icon Member Description
Ray(Vector3, Vector3)
Initializes a new instance of the Ray structure.

Direction
A unit vector specifying the direction in which the ray is pointing.

Equality(Ray, Ray)
Tests for equality between two objects.

Equals(Ray%, Ray%)
Determines whether the specified object instances are considered equal.

Equals(Ray)
Returns a value that indicates whether the current instance is equal to the specified object.

Equals(Object)
Returns a value that indicates whether the current instance is equal to a specified object.
(Overrides ValueType.Equals(Object).)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()()
Returns the hash code for this instance.
(Overrides ValueType.GetHashCode()()()().)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
Inequality(Ray, Ray)
Tests for inequality between two objects.

Intersects(Ray, BoundingSphere, Single%)
Determines whether a ray intersects the specified object.

Intersects(Ray, BoundingBox, Single%)
Determines whether a ray intersects the specified object.

Intersects(Ray, Vector3, Vector3, Vector3, Single%, Single%, Single%)
Determines whether a ray intersects the specified object.

Intersects(Ray, Vector3, Vector3, Vector3, Single%)
Determines whether a ray intersects the specified object.

Intersects(Ray, Plane, Single%)
Determines whether a ray intersects the specified object.

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Position
Specifies the location of the ray's origin.

ToString()()()()
Converts the value of the object to its equivalent string representation.
(Overrides ValueType.ToString()()()().)

Assembly: SlimDX (Module: SlimDX) Version: 2.0.11.43