Package jdsl.geomobj.ref

This package contains implementations of the interfaces in jdsl.geomobj.api.

See:
          Description

Class Summary
AbstractCircle2D An abstract class extended by IntCircle2D and RatCircle2D.
AbstractGeomObject2D This abstract class is the superclass for all two-dimensional objects.
AbstractIntLinearCurve2D An abstract class extended by IntLine2D, IntRay2D, and IntSegment2D.
AbstractLinearCurve2D An abstract class extended by AbstractIntLinearCurve2D and AbstractRatLinearCurve2D.
AbstractRatLinearCurve2D An abstract class extended by RatLine2D, RatRay2D, and RatSegment2D.
AbstractRealLinearCurve2D An abstract class extended by RealLine2D, RealRay2D, and RealSegment2D.
GeomConstructor2DImpl Default implementation of the GeomConstructor2D interface.
GeomSelector2DImpl Default implementation of the GeomSelector2D interface
GeomTester2DImpl Default implementation of the GeomTester2D interface.
IntCircle2D This is the class for a two-dimensional circle constructed using three integer points.
IntDirection2D This is the class for a two-dimensional integer direction.
IntIntGeomTests2D Default implementation of interface TwoArgsGeomTests2D with integer arguments.
IntIntIntGeomTests2D Implementation of interface ThreeArgsGeomTests2D with integer arguments.
IntIntRatGeomTests2D Implementation of interface ThreeArgsGeomTests2D with integer first and second arguments, and rational third argument.
IntLine2D IntLine2D is a Line2D constructed using either two integer points or an integer point and an integer direction.
IntPoint2D This is the class for a two-dimensional geometric point with integer coordinates.
IntRatGeomTests2D Default implementation of interface TwoArgsGeomTests2D with integer first argument and rational second argument.
IntRatRatGeomTests2D Implementation of interface ThreeArgsGeomTests2D with integer first argument, and rational second and third arguments.
IntRay2D IntRay2D is a Ray2D constructed using either two distinct integer points or an integer point and an integer direction.
IntRectangle2D This is the class for a two-dimensional rectangle constructed using two integer points.
IntSegment2D IntSegment2D is a Segment2D constructed using two distinct integer points.
JdslNumber All operations return downcasted Numbers (most efficient use of space) and take in downcasted input.
RatCircle2D A two-dimensional circle constructed using three integer or rational points.
RatDirection2D A two-dimensional rational direction.
RatIntGeomTests2D Default implementation of interface TwoArgsGeomTests2D with rational first argument and integer second argument.
RatIntIntGeomTests2D Implementation of interface ThreeArgsGeomTests2D with integer second and third arguments, and rational first argument.
RatIntRatGeomTests2D Implementation of interface ThreeArgsGeomTests2D with integer second argument, and rational first and third arguments.
RatLine2D A Line2D constructed using either two distinct integer or rational points, or an integer or rational point and an integer or rational direction.
RatPoint2D A finite two dimensional geometric point with rational coordinates.
RatRatGeomTests2D Default implementation of interface TwoArgsGeomTests2D with rational arguments.
RatRatRatGeomTests2D Implementation of interface ThreeArgsGeomTests2D with rational arguments.
RatRay2D RatRay2D is a Ray2D constructed using either two distinct integer or rational points, or an integer or rational point and an integer or rational direction.
RatRectangle2D A two-dimensional rectangle constructed using two integer or rational points.
RatSegment2D A Segment2D constructed using two distinct integer or rational points.
RealDirection2D This is the class for a two-dimensional real direction.
RealLine2D RealLine2D is a Line2D constructed using either two real points or a real point and a real direction.
RealPoint2D This is the class for a two-dimensional geometric point with real coordinates.
RealRay2D RealRay2D is a Ray2D constructed using either two distinct real points or a real point and a real direction.
RealSegment2D RealSegment2D is a Segment2D constructed using two distinct real points.
 

Package jdsl.geomobj.ref Description

This package contains implementations of the interfaces in jdsl.geomobj.api. For each interface two different implementations are provided, corresponding to different representations of the geometric objects: one uses integer arithmetic and the other uses exact rational arithmetic.
Ideally, geometric programs should never access directly the geometric information of the objects they manipulate, except for visualization purposes. All the geometric tests and constructions should be performed invoking the appropriate methods of jdsl.geomobj.api.GeomTester2D and jdsl.geomobj.api.GeomConstructor2D, implemented in GeomTester2DImpl and GeomConstructor2DImpl, respectively.

See Also:
jdsl.geomobj.api