|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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.GeometryAccelerationDegree, Geometry.Type |
| 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. |
double |
getAttributeAsDbl(double t,
int semantics,
int ordinate)
Returns the attribute on the segment for the given parameter value. |
Geometry.Type |
getType()
Returns the geometry type. |
int |
intersectionWithAxis2D(boolean b_axis_x,
double ordinate,
double[] result_ordinates,
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)
Returns the axis aligned bounding box of the geometry. |
void |
queryEnvelope2D(Envelope2D env)
Returns tight bbox of the Geometry in X, Y plane. |
| Methods inherited from class com.esri.core.geometry.Segment |
|---|
calculateArea2D, copyTo, getDimension, getEndAttributeAsDbl, getEndAttributeAsInt, getEndX, getEndY, getStartAttributeAsDbl, getStartAttributeAsInt, getStartX, getStartY, isEmpty, isEmptyImpl, queryEnd, queryInterval, queryStart, setEmpty, setEnd, setEndAttribute, setEndAttribute, setStart, setStartAttribute, setStartAttribute |
| Methods inherited from class com.esri.core.geometry.Geometry |
|---|
_getImpl, addAttribute, addID, addM, copy, dropAllAttributes, dropAttribute, getDescription, getDimensionFromType, getStateFlag, hasAttribute, hasID, hasM, hasZ, isArea, isLinear, isMultiPath, isMultiVertex, isPoint, isSegment, queryLooseEnvelope2D |
| 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 Geometrypublic double calculateLength2D()
GeometryGeometryEngine
calculateLength2D in class Geometrypublic boolean isCurve()
public void queryEnvelope(Envelope env)
Geometry
queryEnvelope in class Geometryenv - The envelope to return the result in.public void queryEnvelope2D(Envelope2D env)
Geometry
queryEnvelope2D in class Geometrypublic void applyTransformation(Transformation2D transform)
Geometry
applyTransformation in class Geometrytransform - The affine transformation to be applied to this geometry.public Geometry createInstance()
Geometry
createInstance in class Geometry
public double getAttributeAsDbl(double t,
int semantics,
int ordinate)
Segment
getAttributeAsDbl in class Segment
public int intersectionWithAxis2D(boolean b_axis_x,
double ordinate,
double[] result_ordinates,
double[] parameters)
Segment
intersectionWithAxis2D in class Segmentb_axis_x - 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).result_ordinates - 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 | |||||||||