geometry
Class Dimensions2D

java.lang.Object
  extended by geometry.Dimensions2D
All Implemented Interfaces:
Dimensions
Direct Known Subclasses:
Dimensions3D

public class Dimensions2D
extends java.lang.Object
implements Dimensions

Dimensions for 2D pixels.Returning default 0 for z-coordinate


Field Summary
private  double xdim
          the pixel width
private  double ydim
          the pixel height
 
Constructor Summary
Dimensions2D(double xdim, double ydim)
          Setting width and height dimension.
 
Method Summary
 double getXDim()
          get the pixel's/voxel's width
 double getYDim()
          get the pixel's/voxel's height
 double getZDim()
          get the pixel's/voxel's depth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xdim

private double xdim
the pixel width


ydim

private double ydim
the pixel height

Constructor Detail

Dimensions2D

public Dimensions2D(double xdim,
                    double ydim)
Setting width and height dimension.

Parameters:
xdim - the width dimension
ydim - the height dimension
Method Detail

getXDim

public double getXDim()
Description copied from interface: Dimensions
get the pixel's/voxel's width

Specified by:
getXDim in interface Dimensions

getYDim

public double getYDim()
Description copied from interface: Dimensions
get the pixel's/voxel's height

Specified by:
getYDim in interface Dimensions

getZDim

public double getZDim()
Description copied from interface: Dimensions
get the pixel's/voxel's depth

Specified by:
getZDim in interface Dimensions