|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jts.operation.distance3d.AxisPlaneCoordinateSequence
public class AxisPlaneCoordinateSequence
A CoordinateSequence wrapper which projects 3D coordinates into one of the three Cartesian axis planes, using the standard orthonormal projection (i.e. simply selecting the appropriate ordinates into the XY ordinates). The projected data is represented as 2D coordinates.
| Field Summary |
|---|
| Fields inherited from interface com.vividsolutions.jts.geom.CoordinateSequence |
|---|
M, X, Y, Z |
| Method Summary | |
|---|---|
Object |
clone()
Returns a deep copy of this collection. |
Envelope |
expandEnvelope(Envelope env)
Expands the given Envelope to include the coordinates in the sequence. |
Coordinate |
getCoordinate(int i)
Returns (possibly a copy of) the i'th coordinate in this sequence. |
void |
getCoordinate(int index,
Coordinate coord)
Copies the i'th coordinate in the sequence to the supplied Coordinate. |
Coordinate |
getCoordinateCopy(int i)
Returns a copy of the i'th coordinate in this sequence. |
int |
getDimension()
Returns the dimension (number of ordinates in each coordinate) for this sequence. |
double |
getOrdinate(int index,
int ordinateIndex)
Returns the ordinate of a coordinate in this sequence. |
double |
getX(int index)
Returns ordinate X (0) of the specified coordinate. |
double |
getY(int index)
Returns ordinate Y (1) of the specified coordinate. |
double |
getZ(int index)
|
static CoordinateSequence |
projectToXY(CoordinateSequence seq)
Creates a wrapper projecting to the XY plane. |
static CoordinateSequence |
projectToXZ(CoordinateSequence seq)
Creates a wrapper projecting to the XZ plane. |
static CoordinateSequence |
projectToYZ(CoordinateSequence seq)
Creates a wrapper projecting to the YZ plane. |
void |
setOrdinate(int index,
int ordinateIndex,
double value)
Sets the value for a given ordinate of a coordinate in this sequence. |
int |
size()
Returns the number of coordinates in this sequence. |
Coordinate[] |
toCoordinateArray()
Returns (possibly copies of) the Coordinates in this collection. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static CoordinateSequence projectToXY(CoordinateSequence seq)
seq - the sequence to be projected
public static CoordinateSequence projectToXZ(CoordinateSequence seq)
seq - the sequence to be projected
public static CoordinateSequence projectToYZ(CoordinateSequence seq)
seq - the sequence to be projected
public int getDimension()
CoordinateSequence
getDimension in interface CoordinateSequencepublic Coordinate getCoordinate(int i)
CoordinateSequenceNote that in the future the semantics of this method may change to guarantee that the Coordinate returned is always a copy. Callers should not to assume that they can modify a CoordinateSequence by modifying the object returned by this method.
getCoordinate in interface CoordinateSequencei - the index of the coordinate to retrieve
public Coordinate getCoordinateCopy(int i)
CoordinateSequence
getCoordinateCopy in interface CoordinateSequencei - the index of the coordinate to retrieve
public void getCoordinate(int index,
Coordinate coord)
CoordinateSequenceCoordinate. Only the first two dimensions are copied.
getCoordinate in interface CoordinateSequenceindex - the index of the coordinate to copycoord - a Coordinate to receive the valuepublic double getX(int index)
CoordinateSequence
getX in interface CoordinateSequencepublic double getY(int index)
CoordinateSequence
getY in interface CoordinateSequencepublic double getZ(int index)
public double getOrdinate(int index,
int ordinateIndex)
CoordinateSequence
getOrdinate in interface CoordinateSequenceindex - the coordinate index in the sequenceordinateIndex - the ordinate index in the coordinate (in range [0, dimension-1])public int size()
CoordinateSequence
size in interface CoordinateSequence
public void setOrdinate(int index,
int ordinateIndex,
double value)
CoordinateSequence
setOrdinate in interface CoordinateSequenceindex - the coordinate index in the sequenceordinateIndex - the ordinate index in the coordinate (in range [0, dimension-1])value - the new ordinate valuepublic Coordinate[] toCoordinateArray()
CoordinateSequence
toCoordinateArray in interface CoordinateSequencepublic Envelope expandEnvelope(Envelope env)
CoordinateSequenceEnvelope to include the coordinates in the sequence.
Allows implementing classes to optimize access to coordinate values.
expandEnvelope in interface CoordinateSequenceenv - the envelope to expand
public Object clone()
CoordinateSequence
clone in interface CoordinateSequenceclone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||