3D line segment used by the WaypointGraph
Assembly: AnyPath.dll
Constructors
Declaration
public Line3D(float3 a, float3 b)
Parameters
| Type |
Name |
Description |
| float3 |
a |
|
| float3 |
b |
|
Properties
Shorthand for the center of the line
Declaration
public float3 Center { get; }
Property Value
Endpoint of the line segment
Declaration
public float3 a { readonly get; set; }
Property Value
Endpoint of the line segment
Declaration
public float3 b { readonly get; set; }
Property Value
Methods
Returns the closest point on this line from a point
Declaration
public float3 GetClosestPoint(float3 pos)
Parameters
| Type |
Name |
Description |
| float3 |
pos |
|
Returns
Returns a value between 0 and 1 describing how far along the line the closest point on this line is to a given point
Declaration
public float GetClosestPositionT(float3 pos)
Parameters
| Type |
Name |
Description |
| float3 |
pos |
|
Returns
Declaration
public float3 GetDirection()
Returns
Declaration
Returns
Extension Methods