Distance To Line

Pure
DistanceToLine

Returns the shortest distance from a point to an infinite line.

Type: Pure (no side effects)
Category: Fortuna|Vector & Transform
Keywords: vector & transform

Inputs

NameTypeDefaultDescription
PointFVectorPoint parameter
LineOriginFVectorLineOrigin parameter
LineDirectionFVectorLineDirection parameter

Outputs

NameTypeDescription
ReturnValuefloatReturnValue output

Example Use Cases

Example 1

Determine how far a shot missed a target line.

Example 2

Calculate clearance from a power line.