Holds the coordinates for a position within some coordinate reference system. Since {@code DirectPosition}s, as data types, will often be included in larger objects (such as {@linkplain org.geotools.geometry.Geometry geometries}) that have references to {@link CoordinateReferenceSystem}, the {@link #getCoordinateReferenceSystem} methodmay returns {@code null} if this particular {@code DirectPosition} is includedin a larger object with such a reference to a {@linkplain CoordinateReferenceSystem coordinate reference system}. In this case, the cordinate reference system is implicitly assumed to take on the value of the containing object's {@link CoordinateReferenceSystem}.
This particular implementation of {@code DirectPosition} is said "General" because ituses an {@linkplain #ordinates array of ordinates} of an arbitrary length. If the directposition is know to be always two-dimensional, then {@link DirectPosition2D} may providesa more efficient implementation.
Most methods in this implementation are final for performance reason.
@since 2.0
@source $URL$
@version $Id$
@author Martin Desruisseaux (IRD)
@see DirectPosition1D
@see DirectPosition2D
@see java.awt.geom.Point2D