This example demonstrates the use of the DISTF statement between two points, two lines, and a point and a line.
$$
$$ Declarations
$$
ENTITY/PT1,PT2,PT3,CR1,LN1,LN2
$$
$$ Geometry Definitions
$$
PT1 =POINT/-1,.75
PT2 =POINT/1,1.25
PT3 =POINT/0,0
LN1=LINE/PT1,PT2
CR1=CIRCLE/CENTER,PT3,TANTO,LN1
LN2=LINE/PARLEL,LN1,YSMALL,TANTO,CR1
$$
$$ Finding Distances
$$
DIST1=DISTF(PT1,PT2)
DIST2=DISTF(LN1,LN2)
DIST3=DISTF(PT1,LN2)
Using the DISTF Function
NOTE:
In the example above DIST1 would be equal to the length of LN1, and
DIST2 and DIST3 would be equal to the diameter of CR1.