jdsl.geomobj.api
Class Point2D.InfinitePoint2D

java.lang.Object
  |
  +--jdsl.geomobj.api.Point2D.InfinitePoint2D
All Implemented Interfaces:
GeomObject, GeomObject2D, Point2D
Enclosing class:
Point2D

public static final class Point2D.InfinitePoint2D
extends java.lang.Object
implements Point2D

A nested class, used to implement the constant INFINITE. It is final, and the constructor visibility is package, so that no one outside this package can create a Point2D.InfinitePoint2D.

Author:
Luca Vismara (lv)

Inner classes inherited from class jdsl.geomobj.api.Point2D
Point2D.InfinitePoint2D
 
Inner classes inherited from class jdsl.geomobj.api.GeomObject2D
GeomObject2D.NoneGeomObject2D
 
Fields inherited from interface jdsl.geomobj.api.Point2D
INFINITE
 
Fields inherited from interface jdsl.geomobj.api.GeomObject2D
NONE
 
Method Summary
 int arithmeticType()
          The arithmetic type of a geometric object is encoded as an integer number.
 int dim()
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String toString()
           
 double x()
          This approximate method is provided for visualization purposes only; computations should be performed through methods of GeomTester2D.
 double y()
          This approximate method is provided for visualization purposes only; computations should be performed through methods of GeomTester2D.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

equals

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

toString

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

dim

public int dim()
        throws InvalidPointException
Specified by:
dim in interface GeomObject
Following copied from interface: jdsl.geomobj.api.GeomObject
Returns:
the dimension of this

arithmeticType

public int arithmeticType()
                   throws InvalidPointException
Description copied from interface: GeomObject
The arithmetic type of a geometric object is encoded as an integer number. Current legal values are: 0 = an integer geometric object 1 = a rational geometric object
Specified by:
arithmeticType in interface GeomObject
Following copied from interface: jdsl.geomobj.api.GeomObject
Returns:
the arithmetic type of this

x

public double x()
         throws InvalidPointException
Description copied from interface: Point2D
This approximate method is provided for visualization purposes only; computations should be performed through methods of GeomTester2D.
Specified by:
x in interface Point2D
Following copied from interface: jdsl.geomobj.api.Point2D
Returns:
a double approximation of the x coordinate of this

y

public double y()
         throws InvalidPointException
Description copied from interface: Point2D
This approximate method is provided for visualization purposes only; computations should be performed through methods of GeomTester2D.
Specified by:
y in interface Point2D
Following copied from interface: jdsl.geomobj.api.Point2D
Returns:
a double approximation of the y coordinate of this