point_to_line_distance Function

public pure function point_to_line_distance(pt, ln) result(rst)

Computes the shortest distance between a point and a line.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: pt(3)

The point.

class(line), intent(in) :: ln

The line.

Return Value real(kind=real64)

The shortest distance between the point and line.


Contents