Java Statistical Classes

jsc.swt.virtualgraphics
Class VPoint

java.lang.Object
  |
  +--java.awt.geom.Point2D
        |
        +--java.awt.geom.Point2D.Double
              |
              +--jsc.swt.virtualgraphics.VPoint
All Implemented Interfaces:
Cloneable

public class VPoint
extends Point2D.Double

This class represents a point (x,y) in a virtual co-ordinate system.

Version:
1.0
Author:
A. J. Bertie.

Field Summary
 
Fields inherited from class java.awt.geom.Point2D.Double
x, y
 
Constructor Summary
VPoint(double x, double y)
          Creates the point.
 
Method Summary
 VPoint add(VDimension v)
          Return the result of adding a virtual dimension to this point.
 VPoint subtract(VDimension v)
          Return the result of subtracting a virtual dimension from this point.
 String toString()
           
 
Methods inherited from class java.awt.geom.Point2D.Double
getX, getY, setLocation
 
Methods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VPoint

public VPoint(double x,
              double y)
Creates the point.

Method Detail

add

public VPoint add(VDimension v)
Return the result of adding a virtual dimension to this point.

Parameters:
v - the virtual dimension .
Returns:
the result of adding v to this point.

subtract

public VPoint subtract(VDimension v)
Return the result of subtracting a virtual dimension from this point.

Parameters:
v - the virtual dimension .
Returns:
the result of adding v to this point.

toString

public String toString()
Overrides:
toString in class Point2D.Double

Java Statistical Classes

Copyright © Andrew James Bertie, 2005, all rights reserved. Updated 12th Aug 2005