Point2D

public class Point2D

A class to represent the coordinates of a 2-dimensional point.

Constructors

Point2D

public Point2D()

Creates a origin point with coordinates 0,0.

Point2D

public Point2D(int x, int y)

Methods

getX

public int getX()

getY

public int getY()

toString

public String toString()