distance
distance: (number, number, number, number) -> numberThe Euclidean distance from (x1, y1) to (x2, y2), as AWT computes it.
| Method | Returns | Description |
|---|---|---|
distance(number, number, number, number) | number | The Euclidean distance from (x1, y1) to (x2, y2), as AWT computes it. |
distanceSq(number, number, number, number) | number | The squared distance from (x1, y1) to (x2, y2). |
| Field | Type | Description |
|---|---|---|
Double | Point2DClass | Point2D.Double: Point2D itself, for its statics; it has no new (no Point2D object is made). |
Float | Point2DClass | Point2D.Float: Point2D itself, for its statics; it has no new (no Point2D object is made). |
distancedistance: (number, number, number, number) -> numberThe Euclidean distance from (x1, y1) to (x2, y2), as AWT computes it.
distanceSqdistanceSq: (number, number, number, number) -> numberThe squared distance from (x1, y1) to (x2, y2).