public class Point
extends java.lang.Object
Constructor and Description |
---|
Point(double x,
double y)
Instantiates a new point.
|
Modifier and Type | Method and Description |
---|---|
double |
distanceTo(Point p)
Distance to.
|
boolean |
isLeftOf(Line l)
Checks if is left of.
|
java.lang.String |
toString()
To string.
|
public Point(double x, double y)
x
- the xy
- the ypublic double distanceTo(Point p)
p
- the ppublic boolean isLeftOf(Line l)
l
- the lpublic java.lang.String toString()
toString
in class java.lang.Object