C# Class Axiom.Math.Ray

Representation of a ray in space, ie a line with an origin and direction.
Mostra file Open project: WolfgangSt/axiom Class Usage Examples

Public Methods

Method Description
Equals ( object obj ) : bool
GetHashCode ( ) : int
GetPoint ( Real t ) : Vector3

Gets the position of a point t units along the ray.

Intersects ( AxisAlignedBox box ) : IntersectResult

Tests whether this ray intersects the given box.

Intersects ( Plane plane ) : IntersectResult

Tests whether this ray intersects the given plane.

Intersects ( PlaneBoundedVolume volume ) : IntersectResult

Tests whether this ray intersects the given PlaneBoundedVolume.

Intersects ( Sphere sphere ) : IntersectResult

Tests whether this ray intersects the given sphere.

Ray ( ) : System

Default constructor.

Ray ( Vector3 origin, Vector3 direction ) : System

Constructor.

operator ( ) : Vector3

Gets the position of a point t units along the ray.

operator ( ) : bool
this ( Real t ) : Vector3

Gets the position of a point t units along the ray.

Method Details

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetPoint() public method

Gets the position of a point t units along the ray.
public GetPoint ( Real t ) : Vector3
t Real
return Vector3

Intersects() public method

Tests whether this ray intersects the given box.
public Intersects ( AxisAlignedBox box ) : IntersectResult
box AxisAlignedBox
return IntersectResult

Intersects() public method

Tests whether this ray intersects the given plane.
public Intersects ( Plane plane ) : IntersectResult
plane Plane
return IntersectResult

Intersects() public method

Tests whether this ray intersects the given PlaneBoundedVolume.
public Intersects ( PlaneBoundedVolume volume ) : IntersectResult
volume PlaneBoundedVolume
return IntersectResult

Intersects() public method

Tests whether this ray intersects the given sphere.
public Intersects ( Sphere sphere ) : IntersectResult
sphere Sphere
return IntersectResult

Ray() public method

Default constructor.
public Ray ( ) : System
return System

Ray() public method

Constructor.
public Ray ( Vector3 origin, Vector3 direction ) : System
origin Vector3 Starting point of the ray.
direction Vector3 Direction the ray is pointing.
return System

operator() public static method

Gets the position of a point t units along the ray.
public static operator ( ) : Vector3
return Vector3

operator() public static method

public static operator ( ) : bool
return bool

this() public method

Gets the position of a point t units along the ray.
public this ( Real t ) : Vector3
t Real
return Vector3