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.
|
Constructor Summary |
VPoint(double x,
double y)
Creates the point.
|
VPoint
public VPoint(double x,
double y)
- Creates the point.
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
Copyright © Andrew James Bertie, 2005, all rights reserved. Updated 12th Aug 2005