You are on page 1of 1

Project How Far To The Line?

DistToLine

without creating an object


static

A B
C)
double

DistToLine
static double

A B
static

C
getDist

getDist
a

double

Tester
static

A B

getDist
double
Tester
Enter
Enter
Enter
Enter
Enter

the
the
the
the
the

A
B
C
x
y

value for the


value for the
value for the
coordinate of
coordinate of

line: 2.45
line: 4
line: -8
the point: 2.17
the point: -4

Distance from the point to the line is: 3.9831092774319026

You might also like