Package org.geolatte.geom.crs
Class CartesianCoordinateSystem2D
- java.lang.Object
-
- org.geolatte.geom.crs.CoordinateSystem<C2D>
-
- org.geolatte.geom.crs.CartesianCoordinateSystem2D
-
public class CartesianCoordinateSystem2D extends CoordinateSystem<C2D>
A Cartesian 2-Dimensional coordinate system.A Cartesian coordinate system is a coordinate system which gives the position of points relative to orthogonal straight axes. All axes shall have the same unit of measure.
Created by Karel Maesen, Geovise BVBA on 28/11/14.
-
-
Field Summary
Fields Modifier and Type Field Description static CartesianCoordinateSystem2DDEFAULT
-
Constructor Summary
Constructors Constructor Description CartesianCoordinateSystem2D(StraightLineAxis first, StraightLineAxis second)Constructs an instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoordinateSystem<? extends C2D>extend(CoordinateSystemAxis axis)Create a new coordinate system with the axes of this system plus the specified axisClass<C2D>getPositionClass()booleanhasM()does the system have a Measure axis?booleanhasZ()Does the coordinate system have a Vertical or Z axis?CoordinateSystem<? extends C2D>merge(OneDimensionCoordinateSystem<?> coordinateSystem)Create a coordinate system that merges this instance with the specified system-
Methods inherited from class org.geolatte.geom.crs.CoordinateSystem
equals, getAxes, getAxis, getAxisDirections, getAxisForComponentIndex, getAxisIndex, getAxisNormalOrder, getAxisUnit, getCoordinateDimension, hashCode
-
-
-
-
Field Detail
-
DEFAULT
public static final CartesianCoordinateSystem2D DEFAULT
-
-
Constructor Detail
-
CartesianCoordinateSystem2D
public CartesianCoordinateSystem2D(StraightLineAxis first, StraightLineAxis second)
Constructs an instance- Parameters:
first- the first axissecond- the second axis
-
-
Method Detail
-
getPositionClass
public Class<C2D> getPositionClass()
- Specified by:
getPositionClassin classCoordinateSystem<C2D>
-
merge
public CoordinateSystem<? extends C2D> merge(OneDimensionCoordinateSystem<?> coordinateSystem)
Description copied from class:CoordinateSystemCreate a coordinate system that merges this instance with the specified system- Specified by:
mergein classCoordinateSystem<C2D>- Parameters:
coordinateSystem- the system to merge with- Returns:
- a new
CoordinateSystem
-
extend
public CoordinateSystem<? extends C2D> extend(CoordinateSystemAxis axis)
Description copied from class:CoordinateSystemCreate a new coordinate system with the axes of this system plus the specified axis- Specified by:
extendin classCoordinateSystem<C2D>- Parameters:
axis- the additional axis- Returns:
- a new
CoordinateSystem
-
hasZ
public boolean hasZ()
Description copied from class:CoordinateSystemDoes the coordinate system have a Vertical or Z axis?- Specified by:
hasZin classCoordinateSystem<C2D>- Returns:
-
hasM
public boolean hasM()
Description copied from class:CoordinateSystemdoes the system have a Measure axis?- Specified by:
hasMin classCoordinateSystem<C2D>- Returns:
-
-