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

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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