C# 클래스 Axiom.Math.Plane

파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
D Real
Normal Axiom.Math.Vector3

공개 메소드들

메소드 설명
Equals ( object obj ) : bool

Object method for testing equality.

GetDistance ( Axiom.Math.Vector3 point ) : Real

This is a pseudodistance. The sign of the return value is positive if the point is on the positive side of the plane, negative if the point is on the negative side, and zero if the point is on the plane. The absolute value of the return value is the true distance only when the plane normal is a unit length vector.

GetHashCode ( ) : int

Gets the hashcode for this Plane.

GetSide ( AxisAlignedBox box ) : PlaneSide

Returns the side where the aligneBox is. the flag Both indicates an intersecting box. one corner ON the plane is sufficient to consider the box and the plane intersecting.

GetSide ( Axiom.Math.Vector3 point ) : PlaneSide

GetSide ( Axiom.Math.Vector3 centre, Axiom.Math.Vector3 halfSize ) : PlaneSide

Returns which side of the plane that the given box lies on. The box is defined as centre/half-size pairs for effectively.

Plane ( Plane plane ) : System.Runtime.InteropServices
Plane ( Axiom.Math.Vector3 normal, Real constant ) : System.Runtime.InteropServices

Construct a plane through a normal, and a distance to move the plane along the normal.

Plane ( Axiom.Math.Vector3 normal, Axiom.Math.Vector3 point ) : System.Runtime.InteropServices
Plane ( Axiom.Math.Vector3 point0, Axiom.Math.Vector3 point1, Axiom.Math.Vector3 point2 ) : System.Runtime.InteropServices

Construct a plane from 3 coplanar points.

ProjectVector ( Axiom.Math.Vector3 point ) : Axiom.Math.Vector3

Project a point onto the plane.

Redefine ( Axiom.Math.Vector3 rkNormal, Axiom.Math.Vector3 rkPoint ) : void

Redefine this plane based on a normal and a point.

Redefine ( Axiom.Math.Vector3 point0, Axiom.Math.Vector3 point1, Axiom.Math.Vector3 point2 ) : void

Construct a plane from 3 coplanar points.

ToString ( ) : string

Returns a string representation of this Plane.

operator ( ) : bool

Compares 2 Planes for equality.

메소드 상세

Equals() 공개 메소드

Object method for testing equality.
public Equals ( object obj ) : bool
obj object Object to test.
리턴 bool

GetDistance() 공개 메소드

This is a pseudodistance. The sign of the return value is positive if the point is on the positive side of the plane, negative if the point is on the negative side, and zero if the point is on the plane. The absolute value of the return value is the true distance only when the plane normal is a unit length vector.
public GetDistance ( Axiom.Math.Vector3 point ) : Real
point Axiom.Math.Vector3
리턴 Real

GetHashCode() 공개 메소드

Gets the hashcode for this Plane.
public GetHashCode ( ) : int
리턴 int

GetSide() 공개 메소드

Returns the side where the aligneBox is. the flag Both indicates an intersecting box. one corner ON the plane is sufficient to consider the box and the plane intersecting.
public GetSide ( AxisAlignedBox box ) : PlaneSide
box AxisAlignedBox
리턴 PlaneSide

GetSide() 공개 메소드

public GetSide ( Axiom.Math.Vector3 point ) : PlaneSide
point Axiom.Math.Vector3
리턴 PlaneSide

GetSide() 공개 메소드

Returns which side of the plane that the given box lies on. The box is defined as centre/half-size pairs for effectively.
public GetSide ( Axiom.Math.Vector3 centre, Axiom.Math.Vector3 halfSize ) : PlaneSide
centre Axiom.Math.Vector3 The centre of the box.
halfSize Axiom.Math.Vector3 The half-size of the box.
리턴 PlaneSide

Plane() 공개 메소드

public Plane ( Plane plane ) : System.Runtime.InteropServices
plane Plane
리턴 System.Runtime.InteropServices

Plane() 공개 메소드

Construct a plane through a normal, and a distance to move the plane along the normal.
public Plane ( Axiom.Math.Vector3 normal, Real constant ) : System.Runtime.InteropServices
normal Axiom.Math.Vector3
constant Real
리턴 System.Runtime.InteropServices

Plane() 공개 메소드

public Plane ( Axiom.Math.Vector3 normal, Axiom.Math.Vector3 point ) : System.Runtime.InteropServices
normal Axiom.Math.Vector3
point Axiom.Math.Vector3
리턴 System.Runtime.InteropServices

Plane() 공개 메소드

Construct a plane from 3 coplanar points.
public Plane ( Axiom.Math.Vector3 point0, Axiom.Math.Vector3 point1, Axiom.Math.Vector3 point2 ) : System.Runtime.InteropServices
point0 Axiom.Math.Vector3 First point.
point1 Axiom.Math.Vector3 Second point.
point2 Axiom.Math.Vector3 Third point.
리턴 System.Runtime.InteropServices

ProjectVector() 공개 메소드

Project a point onto the plane.
public ProjectVector ( Axiom.Math.Vector3 point ) : Axiom.Math.Vector3
point Axiom.Math.Vector3
리턴 Axiom.Math.Vector3

Redefine() 공개 메소드

Redefine this plane based on a normal and a point.
public Redefine ( Axiom.Math.Vector3 rkNormal, Axiom.Math.Vector3 rkPoint ) : void
rkNormal Axiom.Math.Vector3 Normal vector
rkPoint Axiom.Math.Vector3 Point vector
리턴 void

Redefine() 공개 메소드

Construct a plane from 3 coplanar points.
public Redefine ( Axiom.Math.Vector3 point0, Axiom.Math.Vector3 point1, Axiom.Math.Vector3 point2 ) : void
point0 Axiom.Math.Vector3 First point.
point1 Axiom.Math.Vector3 Second point.
point2 Axiom.Math.Vector3 Third point.
리턴 void

ToString() 공개 메소드

Returns a string representation of this Plane.
public ToString ( ) : string
리턴 string

operator() 공개 정적인 메소드

Compares 2 Planes for equality.
public static operator ( ) : bool
리턴 bool

프로퍼티 상세

D 공개적으로 프로퍼티

Distance from the origin.
public Real D
리턴 Real

Normal 공개적으로 프로퍼티

Direction the plane is facing.
public Vector3,Axiom.Math Normal
리턴 Axiom.Math.Vector3