Skip to main content
Version: 15.x (API 15) [Legacy]

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​
TypeNameDescription
System.Numerics.Vector2pointThe observed point.
System.Numerics.Vector2lineStartOne end of the line.
System.Numerics.Vector2lineEndThe 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​
TypeNameDescription
System.Numerics.Vector2pointThe point to evaluate.