public class Point2DInt extends Object
| Constructor and Description |
|---|
Point2DInt(int x,
int y)
Constructor.
|
Point2DInt(Point2DInt copy)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
double |
getDistance(Point2DInt c)
Return the distance between this point and the given one.
|
int |
getX() |
int |
getY() |
int |
hashCode() |
String |
toString() |
Point2DInt |
translate(Point2DInt translation)
Return a new point being this point with the given translation.
|
public Point2DInt(int x,
int y)
public Point2DInt(Point2DInt copy)
public int getX()
public int getY()
public double getDistance(Point2DInt c)
public Point2DInt translate(Point2DInt translation)
Copyright © 2017. All rights reserved.