com.brusoftware.plot4j
Class Point

java.lang.Object
  extended by com.brusoftware.plot4j.Point

public class Point
extends java.lang.Object

This class represents a point on a Cartesian plan.

Version:
0.1
Author:
Alessandro Brunelli

Constructor Summary
Point(double x, double y)
          Creates a new Point.
 
Method Summary
 double getX()
          Returns the x-coordinate of this Point.
 double getY()
          Returns the y-coordinate of this Point.
 void setX(double x)
          Sets the x-coordinate of this Point.
 void setY(double y)
          Sets the y-coordinate of this Point.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Point

public Point(double x,
             double y)
Creates a new Point.

Parameters:
x - the x-coordinate of this Point
y - the y-coordinate of this Point
Method Detail

getX

public double getX()
Returns the x-coordinate of this Point.

Returns:
the x-coordinate of this Point

setX

public void setX(double x)
Sets the x-coordinate of this Point.

Parameters:
x - the x-coordinate of this Point

getY

public double getY()
Returns the y-coordinate of this Point.

Returns:
the y-coordinate of this Point

setY

public void setY(double y)
Sets the y-coordinate of this Point.

Parameters:
y - the y-coordinate of this Point