Struct DOTSPlane
A DOTS representation of a Unity Plane
Implements
IComponentData
Assembly: cs.temp.dll.dll
Syntax
public struct DOTSPlane : IComponentData
Constructors
DOTSPlane(float3, float3)
Declaration
public DOTSPlane(float3 inNormal, float3 inPoint)
Parameters
Type |
Name |
Description |
float3 |
inNormal |
|
float3 |
inPoint |
|
DOTSPlane(float3, float3, float3)
Declaration
public DOTSPlane(float3 a, float3 b, float3 c)
Parameters
Type |
Name |
Description |
float3 |
a |
|
float3 |
b |
|
float3 |
c |
|
DOTSPlane(float3, Single)
Declaration
public DOTSPlane(float3 inNormal, float distance)
Parameters
Type |
Name |
Description |
float3 |
inNormal |
|
System.Single |
distance |
|
Properties
distance
Declaration
public float distance { get; set; }
Property Value
Type |
Description |
System.Single |
|
flipped
Declaration
public readonly DOTSPlane flipped { get; }
Property Value
normal
Declaration
public float3 normal { get; set; }
Property Value
Methods
ClosestPointOnPlane(float3)
Declaration
public float3 ClosestPointOnPlane(float3 point)
Parameters
Type |
Name |
Description |
float3 |
point |
|
Returns
Flip()
Declaration
GetDistanceToPoint(float3)
Declaration
public float GetDistanceToPoint(float3 point)
Parameters
Type |
Name |
Description |
float3 |
point |
|
Returns
Type |
Description |
System.Single |
|
GetSide(float3)
Declaration
public bool GetSide(float3 point)
Parameters
Type |
Name |
Description |
float3 |
point |
|
Returns
Type |
Description |
System.Boolean |
|
SameSide(float3, float3)
Declaration
public bool SameSide(float3 inPt0, float3 inPt1)
Parameters
Type |
Name |
Description |
float3 |
inPt0 |
|
float3 |
inPt1 |
|
Returns
Type |
Description |
System.Boolean |
|
Set3Points(float3, float3, float3)
Declaration
public void Set3Points(float3 a, float3 b, float3 c)
Parameters
Type |
Name |
Description |
float3 |
a |
|
float3 |
b |
|
float3 |
c |
|
SetNormalAndPosition(float3, float3)
Declaration
public void SetNormalAndPosition(float3 inNormal, float3 inPoint)
Parameters
Type |
Name |
Description |
float3 |
inNormal |
|
float3 |
inPoint |
|
Translate(DOTSPlane, Vector3)
Declaration
public static DOTSPlane Translate(DOTSPlane plane, Vector3 translation)
Parameters
Type |
Name |
Description |
DOTSPlane |
plane |
|
Vector3 |
translation |
|
Returns
Translate(Vector3)
Declaration
public void Translate(Vector3 translation)
Parameters
Type |
Name |
Description |
Vector3 |
translation |
|
Implements
IComponentData