drasys.or.geom.rect3
Class CoordinateSystem

java.lang.Object
  |
  +--drasys.or.geom.rect3.CoordinateSystem

public class CoordinateSystem
extends java.lang.Object
implements CoordinateSystemI, java.io.Serializable

The object that describes the 3D rectangular coordinate system. The constructor for this class is private and an instance can be obtained with CoordinateSystem.getInstance();

See Also:
Serialized Form

Field Summary
protected static double _accuracy
           
 
Method Summary
 java.lang.String dimensionName(int i)
          Returns dimension names by ordinality.
 boolean equals(double a, double b)
          Returns true if the arguments are equal to with in the accuracy of the coordinate system.
 boolean equals(java.lang.Object o)
           
 double getAccuracy()
          Returns the absolute accuracy required in this coordinate system.
static CoordinateSystemI getInstance()
           
 PointI getPointInstance(double[] coordinates)
          Returns an instance of a point object initialized to the coordinates.
 PointI getPointInstance(PointI point)
          Returns an instance of a point object initialized to point.
 PointI getPointInstance(VectorI coordinates)
          Returns an instance of a point object initialized to the coordinates.
 RangeI getRangeInstance(PointI a, PointI b)
          Returns an instance of a range object initialized to include the argument.
 RangeI getRangeInstance(RangeI range)
          Returns an instance of a range object initialized to include the arguments.
 boolean isSymmetric()
          Retuns true if distances are symmetric.
static void setAccuracy(double accuracy)
          Sets the absolute accuracy required in this coordinate system.
 int sizeOfDimensions()
          Returns the number of dimensions in the coordinate system.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_accuracy

protected static double _accuracy
Method Detail

getInstance

public static CoordinateSystemI getInstance()

getAccuracy

public double getAccuracy()
Returns the absolute accuracy required in this coordinate system. The accuracy is used globally for equality tests and to terminate numerical methods. The default absolute accuracy for this coordinate system is '1.0E-6'.
Specified by:
getAccuracy in interface CoordinateSystemI

setAccuracy

public static void setAccuracy(double accuracy)
Sets the absolute accuracy required in this coordinate system. The accuracy is used globally for equality tests and to terminate numerical methods. The default absolute accuracy for this coordinate system is '1.0E-6'.

equals

public boolean equals(double a,
                      double b)
Returns true if the arguments are equal to with in the accuracy of the coordinate system.
Specified by:
equals in interface CoordinateSystemI

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

sizeOfDimensions

public int sizeOfDimensions()
Returns the number of dimensions in the coordinate system.
Specified by:
sizeOfDimensions in interface CoordinateSystemI

dimensionName

public java.lang.String dimensionName(int i)
Returns dimension names by ordinality.
Specified by:
dimensionName in interface CoordinateSystemI

isSymmetric

public boolean isSymmetric()
Retuns true if distances are symmetric.
Specified by:
isSymmetric in interface CoordinateSystemI

getPointInstance

public PointI getPointInstance(PointI point)
Returns an instance of a point object initialized to point.
Specified by:
getPointInstance in interface CoordinateSystemI

getPointInstance

public PointI getPointInstance(VectorI coordinates)
Returns an instance of a point object initialized to the coordinates.
Specified by:
getPointInstance in interface CoordinateSystemI

getPointInstance

public PointI getPointInstance(double[] coordinates)
Returns an instance of a point object initialized to the coordinates.
Specified by:
getPointInstance in interface CoordinateSystemI

getRangeInstance

public RangeI getRangeInstance(RangeI range)
Returns an instance of a range object initialized to include the arguments.
Specified by:
getRangeInstance in interface CoordinateSystemI

getRangeInstance

public RangeI getRangeInstance(PointI a,
                               PointI b)
Returns an instance of a range object initialized to include the argument.
Specified by:
getRangeInstance in interface CoordinateSystemI

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object


Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com