dot-distancePointLine: Calculate shortest distance between point and line

Description Usage Arguments Value Examples

Description

This function calculates the shortest distance between a point and a line in 2D space.

Usage

1
.distancePointLine(x, y, a, b, c)

Arguments

x

x-coordinate of point

y

y-coordinate of point

a

coefficient in line equation a * x + b * y + c = 0

b

coefficient in line equation a * x + b * y + c = 0

c

coefficient in line equation a * x + b * y + c = 0

Value

numeric The shortest distance between a point and a line

Examples

1
.distancePointLine(0, 0, 1, -1, 1)

CoreGx documentation built on Nov. 8, 2020, 4:50 p.m.