Struct LineEvaluator
A utility to evaluate an implicit line at one or multiple points.
Assembly: Dalamud.dll
Declaration
public readonly struct LineEvaluator
Fields
Factors
The factors to multiply a points coordinates with.
Declaration
public readonly Vector2 Factors
Offset
The linear offset to add.
Declaration
public readonly float Offset
Methods
ClosestPointOnLine(Vector2, Vector2, Vector2)
Obtain the point closest to <code class="paramref">point</code> on a line.
Declaration
public static Vector2 ClosestPointOnLine(Vector2 point, Vector2 lineStart, Vector2 lineEnd)
Returns
System.Numerics.Vector2: The closest point that lies on the line.
Parameters
| Type | Name | Description |
|---|---|---|
System.Numerics.Vector2 | point | The observed point. |
System.Numerics.Vector2 | lineStart | One end of the line. |
System.Numerics.Vector2 | lineEnd | The other end of the line. |
Evaluate(Vector2)
Evaluate the implicit line at the given point.
Declaration
public float Evaluate(Vector2 point)
Returns
System.Single: The evaluation.
Parameters
| Type | Name | Description |
|---|---|---|
System.Numerics.Vector2 | point | The point to evaluate. |