com.partnersoft.v3x.graphics
Class Coord3D

java.lang.Object
  extended by com.partnersoft.v3x.graphics.Coord
      extended by com.partnersoft.v3x.graphics.Coord2D
          extended by com.partnersoft.v3x.graphics.Coord3D
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
SheetCoord

public class Coord3D
extends Coord2D

A 3-dimensional coordinate or offset.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.partnersoft.v3x.graphics.Coord
coords
 
Constructor Summary
  Coord3D()
          Do-nothing constructor for subclasses.
protected Coord3D(double[] newCoords)
           
  Coord3D(double x, double y, double z)
          Creates a new Coord3D from x, y and z dimensions.
 
Method Summary
 java.lang.Object clone()
          Clone me, baby.
 double getZ()
          Returns the magnitude of the z dimension.
 void setZ(double newZ)
          Sets the magnitude of the z dimension.
 XyPoint toXyPoint()
           
 XyzPoint toXyzPoint()
           
 
Methods inherited from class com.partnersoft.v3x.graphics.Coord2D
getX, getY, setX, setY
 
Methods inherited from class com.partnersoft.v3x.graphics.Coord
at, copyState, distance, equals, getCoords, getDimensions, hashCode, round, setCoords, stretch, toString, translate, truncate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Coord3D

public Coord3D()
Do-nothing constructor for subclasses.


Coord3D

protected Coord3D(double[] newCoords)

Coord3D

public Coord3D(double x,
               double y,
               double z)
Creates a new Coord3D from x, y and z dimensions.

Method Detail

getZ

public double getZ()
Returns the magnitude of the z dimension.


setZ

public void setZ(double newZ)
Sets the magnitude of the z dimension.


clone

public java.lang.Object clone()
Clone me, baby.

Overrides:
clone in class Coord2D

toXyPoint

public XyPoint toXyPoint()

toXyzPoint

public XyzPoint toXyzPoint()