C# Класс Axiom.Math.Ray

Representation of a ray in space, ie a line with an origin and direction.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

GetPoint() публичный Метод

Gets the position of a point t units along the ray.
public GetPoint ( Real t ) : Vector3
t Real
Результат Vector3

Intersects() публичный Метод

Tests whether this ray intersects the given box.
public Intersects ( AxisAlignedBox box ) : IntersectResult
box AxisAlignedBox
Результат IntersectResult

Intersects() публичный Метод

Tests whether this ray intersects the given plane.
public Intersects ( Plane plane ) : IntersectResult
plane Plane
Результат IntersectResult

Intersects() публичный Метод

Tests whether this ray intersects the given PlaneBoundedVolume.
public Intersects ( PlaneBoundedVolume volume ) : IntersectResult
volume PlaneBoundedVolume
Результат IntersectResult

Intersects() публичный Метод

Tests whether this ray intersects the given sphere.
public Intersects ( Sphere sphere ) : IntersectResult
sphere Sphere
Результат IntersectResult

Ray() публичный Метод

Default constructor.
public Ray ( ) : System
Результат System

Ray() публичный Метод

Constructor.
public Ray ( Vector3 origin, Vector3 direction ) : System
origin Vector3 Starting point of the ray.
direction Vector3 Direction the ray is pointing.
Результат System

operator() публичный статический Метод

Gets the position of a point t units along the ray.
public static operator ( ) : Vector3
Результат Vector3

operator() публичный статический Метод

public static operator ( ) : bool
Результат bool

this() публичный Метод

Gets the position of a point t units along the ray.
public this ( Real t ) : Vector3
t Real
Результат Vector3