Struct Plane
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
Namespace: Aximo
Assembly: AxCommon.dll
Syntax
Constructors
|
Improve this Doc
View Source
Declaration
public Plane(Vector3 normal, Vector3 point)
Parameters
Type |
Name |
Description |
OpenToolkit.Mathematics.Vector3 |
normal |
|
OpenToolkit.Mathematics.Vector3 |
point |
|
|
Improve this Doc
View Source
Declaration
public Plane(Vector3 a, Vector3 b, Vector3 c)
Parameters
Type |
Name |
Description |
OpenToolkit.Mathematics.Vector3 |
a |
|
OpenToolkit.Mathematics.Vector3 |
b |
|
OpenToolkit.Mathematics.Vector3 |
c |
|
|
Improve this Doc
View Source
Declaration
public Plane(Vector3 normal, float distance)
Parameters
Type |
Name |
Description |
OpenToolkit.Mathematics.Vector3 |
normal |
|
System.Single |
distance |
|
Properties
|
Improve this Doc
View Source
Distance
Distance from the origin to the plane.
Declaration
public float Distance { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Normal
Normal vector of the plane.
Declaration
public Vector3 Normal { get; set; }
Property Value
Type |
Description |
OpenToolkit.Mathematics.Vector3 |
|
Methods
|
Improve this Doc
View Source
Declaration
public Vector3 ClosestPointOnPlane(Vector3 point)
Parameters
Type |
Name |
Description |
OpenToolkit.Mathematics.Vector3 |
point |
|
Returns
Type |
Description |
OpenToolkit.Mathematics.Vector3 |
|
|
Improve this Doc
View Source
Flip()
Make the plane face the opposite direction
Declaration
Returns
|
Improve this Doc
View Source
Declaration
public float GetDistanceToPoint(Vector3 point)
Parameters
Type |
Name |
Description |
OpenToolkit.Mathematics.Vector3 |
point |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Is a point on the positive side of the plane?
Declaration
public bool IsPositiveSide(Vector3 point)
Parameters
Type |
Name |
Description |
OpenToolkit.Mathematics.Vector3 |
point |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Raycast(Ray, out Single)
Declaration
public bool Raycast(Ray ray, out float enter)
Parameters
Type |
Name |
Description |
Ray |
ray |
|
System.Single |
enter |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Are two points on the same side of the plane?
Declaration
public bool SameSide(Vector3 point1, Vector3 point2)
Parameters
Type |
Name |
Description |
OpenToolkit.Mathematics.Vector3 |
point1 |
|
OpenToolkit.Mathematics.Vector3 |
point2 |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
|
Improve this Doc
View Source
Creates a plane that's translated into a given direction
Declaration
public Plane Translate(Vector3 translation)
Parameters
Type |
Name |
Description |
OpenToolkit.Mathematics.Vector3 |
translation |
|
Returns