public final class Point extends Object
| Modifier and Type | Method and Description |
|---|---|
double |
distanceFrom(Point point)
Calculates a distance between two points.
|
static Point |
fromPosition(double x,
double y)
Creates a point from x and y positions.
|
double |
getX() |
double |
getY() |
public static Point fromPosition(double x, double y)
x - y - public final double distanceFrom(Point point)
point - public double getX()
public double getY()
Copyright © 2016. All rights reserved.