Tesla Graphics Engine Documentation (January 2012)
Ray Structure
TeslaTesla.MathRay
Defines a 3D ray with a point of origin and a direction.
Declaration Syntax
C#
[SerializableAttribute]
public struct Ray : IEquatable<Ray>
Members
All Members Constructors Methods Fields



Icon Member Description
Ray(Vector3, Vector3)
Creates a new instance of Ray.

Direction
Direction that this ray is pointing in.

Equality(Ray, Ray)
Tests equality between two rays.

Equals(Ray)
Tests equality between this ray and another.

Equals(Object)
Tests equality between this ray and the supplied object.
(Overrides ValueType.Equals(Object).)
GetHashCode()()()()
Get the object's hash code.
(Overrides ValueType.GetHashCode()()()().)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
Inequality(Ray, Ray)
Tests inequality between two rays.

Intersects(Ray%, Triangle%)
Performs a parametric Ray-Triangle test.

Origin
Origin of this ray.

ToString()()()()
Get a string representation of the object.
(Overrides ValueType.ToString()()()().)

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)