C# Class Axiom.Math.Plane

Afficher le fichier Open project: WolfgangSt/axiom Class Usage Examples

Méthodes publiques

Свойство Type Description
D Real
Normal Axiom.Math.Vector3

Méthodes publiques

Méthode Description
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.

Method Details

Equals() public méthode

Object method for testing equality.
public Equals ( object obj ) : bool
obj object Object to test.
Résultat bool

GetDistance() public méthode

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
Résultat Real

GetHashCode() public méthode

Gets the hashcode for this Plane.
public GetHashCode ( ) : int
Résultat int

GetSide() public méthode

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
Résultat PlaneSide

GetSide() public méthode

public GetSide ( Axiom.Math.Vector3 point ) : PlaneSide
point Axiom.Math.Vector3
Résultat PlaneSide

GetSide() public méthode

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.
Résultat PlaneSide

Plane() public méthode

public Plane ( Plane plane ) : System.Runtime.InteropServices
plane Plane
Résultat System.Runtime.InteropServices

Plane() public méthode

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
Résultat System.Runtime.InteropServices

Plane() public méthode

public Plane ( Axiom.Math.Vector3 normal, Axiom.Math.Vector3 point ) : System.Runtime.InteropServices
normal Axiom.Math.Vector3
point Axiom.Math.Vector3
Résultat System.Runtime.InteropServices

Plane() public méthode

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.
Résultat System.Runtime.InteropServices

ProjectVector() public méthode

Project a point onto the plane.
public ProjectVector ( Axiom.Math.Vector3 point ) : Axiom.Math.Vector3
point Axiom.Math.Vector3
Résultat Axiom.Math.Vector3

Redefine() public méthode

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
Résultat void

Redefine() public méthode

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.
Résultat void

ToString() public méthode

Returns a string representation of this Plane.
public ToString ( ) : string
Résultat string

operator() public static méthode

Compares 2 Planes for equality.
public static operator ( ) : bool
Résultat bool

Property Details

D public_oe property

Distance from the origin.
public Real D
Résultat Real

Normal public_oe property

Direction the plane is facing.
public Vector3,Axiom.Math Normal
Résultat Axiom.Math.Vector3