C# Class Axiom.Math.Ray

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

Méthodes publiques

Méthode 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 méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetPoint() public méthode

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

Intersects() public méthode

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

Intersects() public méthode

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

Intersects() public méthode

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

Intersects() public méthode

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

Ray() public méthode

Default constructor.
public Ray ( ) : System
Résultat System

Ray() public méthode

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

operator() public static méthode

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

operator() public static méthode

public static operator ( ) : bool
Résultat bool

this() public méthode

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