## Uses of Class
com.mapinfo.midev.geometry.DirectPosition

Packages that use DirectPosition
com.mapinfo.midev.coordsys.transform: Coordinate transformation factories.
com.mapinfo.midev.geometry: The Geometry package consists of a series of interfaces, classes and enumerations that allow users to work with geometry objects.
com.mapinfo.midev.util: Utility classes.

### Uses of DirectPosition in com.mapinfo.midev.coordsys.transform

Methods in com.mapinfo.midev.coordsys.transform that return DirectPosition
`DirectPosition` CoordTransform.`transform(DirectPosition source, DirectPosition destination)` Returns the specified source `DirectPosition` transformed to the destination `CoordSys`.

Methods in com.mapinfo.midev.coordsys.transform with parameters of type DirectPosition
`DirectPosition` CoordTransform.`transform(DirectPosition source, DirectPosition destination)` Returns the specified source `DirectPosition` transformed to the destination `CoordSys`.

### Uses of DirectPosition in com.mapinfo.midev.geometry

Methods in com.mapinfo.midev.geometry that return DirectPosition
`DirectPosition` Envelope.`getCenter()` Returns the center of the `Envelope`.
`DirectPosition` ICurveSegment.`getControlPoint(int i, DirectPosition dp)` Returns the specified control point as a `DirectPosition` and fills in the specified `DirectPosition`.
`DirectPosition` DirectPosition.`getCopy()` Returns a copy of this `DirectPosition`.
`DirectPosition` IPoint.`getDirectPosition()` Return the `IDirectPosition` that this point represents.
`DirectPosition` IDirectPositionList.`getDirectPosition(int i, DirectPosition dp)` Copy the DirectPosition at the given index into the supplied `DirectPosition`.
`DirectPosition` ICurve.`getEndPosition()` Returns the last position of the curve.
`DirectPosition` ICurveSegment.`getEndPosition()` Returns the last position of the curve.
`DirectPosition` IRing.`getEndPosition()` Return the last position of the IRing.
`DirectPosition` Envelope.`getLowerLeft()` Returns the lower-left corner of the `Envelope`.
`DirectPosition` IRectangle.`getLowerLeft()` Returns the lower-left corner of the `IRectangle` as `DirectPosition`.
`DirectPosition` ICurve.`getPointForDistance(Length len)` Returns the `DirectPosition` that lies at the specified distance along this curve.
`DirectPosition` ICurveSegment.`getPointForDistance(Length len)` Returns the `DirectPosition` that lies at the specified distance along this curve.
`DirectPosition` IRing.`getPointForDistance(Length len)` Returns the `DirectPosition` that lies at the specified distance along this `IRing`.
`DirectPosition` IFeatureGeometry.`getRepresentativePoint()` Returns the representative point of this `IFeatureGeometry`.
`DirectPosition` ICurve.`getStartPosition()` Returns the first position of the curve.
`DirectPosition` ICurveSegment.`getStartPosition()` Returns the first position of the curve.
`DirectPosition` IRing.`getStartPosition()` Return the first position of the IRing.
`DirectPosition` Envelope.`getUpperRight()` Returns the upper-right corner of the `Envelope`.
`DirectPosition` IRectangle.`getUpperRight()` Returns the upper-right corner of the `IRectangle` as `DirectPosition`.
`DirectPosition` IDirectPositionIterator.`nextDirectPosition(DirectPosition dp)` Returns the next `DirectPosition` from this `DirectPositionIterator`.
`static DirectPosition` GeometryFactory.`pos(double x, double y)` Creates a new direct position from the given x and y coordinate values.
`static DirectPosition` GeometryFactory.`pos(String x, String y)` Creates a new direct position from the given x and y coordinate values.
`DirectPosition` AffineTransform.`transform(DirectPosition source, DirectPosition destination)` Transform the specified point according to the coefficients in this transform.
`DirectPosition` IDirectPositionMutator.`transform(DirectPosition in, DirectPosition out)` Apply this mutator to the values in the in direct position and place the changed values in the out direct position.

Methods in com.mapinfo.midev.geometry with parameters of type DirectPosition
`void` IDirectPositionList.`add(DirectPosition dp)` Append the given `DirectPosition` to the end of this list.
`void` IDirectPositionList.`add(int index, DirectPosition dp)` Inserts the given `DirectPosition` at the specified index in this list.
`boolean` Envelope.`contains(DirectPosition dp)` Returns `true` if this `Envelope` contains the location as represented in the specified `DirectPosition`; `false` if not.
`boolean` IDirectPositionList.`contains(DirectPosition dp)` Does this list contain a direct position with the same value as dp? This method returns true if there is at least one direct position (a) in this list such that dp.equals(a) == true.
`boolean` IGeometry.`contains(DirectPosition dp)` Test if a direct position is in the set of direct positions defined by this geometry.
`void` Envelope.`extend(DirectPosition dp)` Enlarge this `Envelope`, if necessary, to include the specified position.
`DirectPosition` ICurveSegment.`getControlPoint(int i, DirectPosition dp)` Returns the specified control point as a `DirectPosition` and fills in the specified `DirectPosition`.
`DirectPosition` IDirectPositionList.`getDirectPosition(int i, DirectPosition dp)` Copy the DirectPosition at the given index into the supplied `DirectPosition`.
`int` IDirectPositionList.`indexOf(DirectPosition dp)` Find the index of the first `DirectPosition` that is equal to the given `DirectPosition`.
`int` IDirectPositionList.`lastIndexOf(DirectPosition dp)` Find the index of the last `DirectPosition` that is equal to the given `DirectPosition`.
`ILineString` GeometryFactory.`newLineString(DirectPosition[] positions)` Creates a line string from the given array of direct positions.
`IMultiPoint` GeometryFactory.`newMultiPoint(DirectPosition[] positions)` Creates a multi-point from an array of direct positions.
`IPoint` GeometryFactory.`newPoint(DirectPosition directPosition)` Creates a new point using a direct position object.
`DirectPosition` IDirectPositionIterator.`nextDirectPosition(DirectPosition dp)` Returns the next `DirectPosition` from this `DirectPositionIterator`.
`static IDirectPositionList` GeometryFactory.`posList(DirectPosition[] positions)` Creates a new direct position list from the given array of direct positions.
`void` DirectPosition.`set(DirectPosition dp)` Set the state of this `DirectPosition` to that of the specified `DirectPosition`.
`void` Envelope.`set(DirectPosition dp1, DirectPosition dp2)` Reinitialize this `Envelope` with the two given `DirectPosition`s.
`void` IDirectPositionList.`set(int index, DirectPosition dp)` Replace the `DirectPosition` at the given index with the given `DirectPosition`.
`void` IFeatureGeometry.`setRepresentativePoint(DirectPosition dp)` Set the representative point of this `IFeatureGeometry` (optional operation).
`DirectPosition` AffineTransform.`transform(DirectPosition source, DirectPosition destination)` Transform the specified point according to the coefficients in this transform.
`DirectPosition` IDirectPositionMutator.`transform(DirectPosition in, DirectPosition out)` Apply this mutator to the values in the in direct position and place the changed values in the out direct position.
`CurveBuilder` CurveBuilder.`withLineString(DirectPosition[] positions)` Adds a new line string to the curve to be created with this builder.
`MultiCurveBuilder` MultiCurveBuilder.`withLineString(DirectPosition[] positions)` Adds a new line string as a curve to the multi-curve to be created with this builder.
`PolygonRingBuilder` PolygonRingBuilder.`withLineString(DirectPosition[] positions)` Adds a new line string to the ring to be created with this builder.
`CurveBuilder` CurveBuilder.`withPoint(DirectPosition position)` Adds a new point to the curve constructed by this builder.
`MultiPointBuilder` MultiPointBuilder.`withPoint(DirectPosition position)` Adds a new point to the multi-point created by this builder.
`PolygonRingBuilder` PolygonRingBuilder.`withPoint(DirectPosition position)` Adds a new point to the ring constructed by this builder.

Constructors in com.mapinfo.midev.geometry with parameters of type DirectPosition
Constructor and Description
`DirectPosition(DirectPosition dp)` Create a `DirectPosition` that is a copy of the specified `DirectPosition`.
`Envelope(DirectPosition dp1, DirectPosition dp2, SpatialInfo spatialInfo)` Create an `Envelope` given two direct positions and a coordinate system.

### Uses of DirectPosition in com.mapinfo.midev.util

Methods in com.mapinfo.midev.util that return DirectPosition
`DirectPosition` DoubleRect.`center()` Returns the center of a rectangle.

Methods in com.mapinfo.midev.util with parameters of type DirectPosition
`boolean` DoubleRect.`contains(DirectPosition p)` Test whether a rectangle contains a point.
`boolean` DoubleRect.`contains(DirectPosition p, boolean includeEdges)` Test whether this rectangle completely contains a point.
`boolean` DoubleRect.`intersects(DirectPosition p)` Test whether a rectangle intersects a point.
`void` DoubleRect.`merge(DirectPosition p)` Merge a point into a rectangle.

Constructors in com.mapinfo.midev.util with parameters of type DirectPosition
Constructor and Description
`DoubleRect(DirectPosition p1, DirectPosition p2)` Constructs a rectangle.