C# 클래스 Axiom.Math.Ray

Representation of a ray in space, ie a line with an origin and direction.
파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

공개 메소드들

메소드 설명
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