|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.core.geometry.Geometry com.esri.core.geometry.Segment com.esri.core.geometry.Line
public final class Line
A straight line between a pair of points.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.esri.core.geometry.Geometry |
---|
Geometry.Type |
Field Summary |
---|
Fields inherited from class com.esri.core.geometry.Geometry |
---|
m_description, m_touchFlag |
Constructor Summary | |
---|---|
Line()
Creates a line segment. |
Method Summary | |
---|---|
void |
applyTransformation(Transformation2D transform)
Applies 2D affine transformation in XY plane. |
double |
calculateLength2D()
Calculates the length of the geometry. |
Geometry |
createInstance()
Creates an instance of an empty geometry of the same type. |
Geometry.Type |
getType()
Returns the geometry type. |
int |
intersectionWithAxis2D(boolean bAxisX,
double ordinate,
double[] resultOrdinates,
double[] parameters)
Calculates intersection points of this segment with an infinite line, parallel to one of the axes. |
boolean |
isCurve()
Indicates if the line segment is a curve. |
void |
queryEnvelope(Envelope env)
Gets the axis aligned bounding box of the geometry. |
Methods inherited from class com.esri.core.geometry.Segment |
---|
calculateArea2D, copyTo, getDimension, getEndX, getEndY, getStartX, getStartY, isEmpty, isEmptyImpl, queryEnd, queryStart, setEmpty, setEnd, setStart |
Methods inherited from class com.esri.core.geometry.Geometry |
---|
_getImpl, copy, getDimensionFromType, getStateFlag, isArea, isLinear, isMultiPath, isMultiVertex, isPoint, isSegment |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Line()
Method Detail |
---|
public Geometry.Type getType()
Geometry
getType
in class Geometry
public double calculateLength2D()
Geometry
GeometryEngine
.
calculateLength2D
in class Geometry
public boolean isCurve()
public void queryEnvelope(Envelope env)
Geometry
queryEnvelope
in class Geometry
env
- The envelope to return the result in.public void applyTransformation(Transformation2D transform)
Geometry
applyTransformation
in class Geometry
transform
- The affine transformation to be applied to this geometry.public Geometry createInstance()
Geometry
public int intersectionWithAxis2D(boolean bAxisX, double ordinate, double[] resultOrdinates, double[] parameters)
Segment
intersectionWithAxis2D
in class Segment
bAxisX
- TRUE if the function works with the line parallel to the axis X.ordinate
- The ordinate value of the line (x for axis Y, y for axis X).resultOrdinates
- The value of ordinate in the intersection points One ordinate is equal to the ordinate parameter. This parameter can be NULL.parameters
- The value of the parameter in the intersection points (between 0 and 1). This parameter can be NULL.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |