com.esri.core.geometry
public final class Line extends Segment implements Serializable
Geometry.GeometryAccelerationDegree, Geometry.GeometryType, Geometry.Type| Constructor and Description |
|---|
Line()
Creates a line segment.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
equals(Object other) |
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.
|
void |
replaceNaNs(int semantics,
double value)
Replaces NaNs in the attribute with the given value.
|
String |
toString()
The output of this method can be only used for debugging.
|
_assignVertexDescriptionImpl, calculateArea2D, copyTo, getBoundary, getDimension, getEndAttributeAsDbl, getEndAttributeAsInt, getEndX, getEndY, getStartAttributeAsDbl, getStartAttributeAsInt, getStartX, getStartY, isEmpty, isEmptyImpl, queryEnd, queryInterval, queryStart, setEmpty, setEnd, setEndAttribute, setEndAttribute, setStart, setStartAttribute, setStartAttribute_getImpl, addAttribute, addID, addM, copy, dropAllAttributes, dropAttribute, getDescription, getDimensionFromType, getStateFlag, hasAttribute, hasID, hasM, hasZ, isArea, isLinear, isMultiPath, isMultiVertex, isPoint, isSegment, queryLooseEnvelope2D, vertex_countpublic Geometry.Type getType()
Geometrypublic double calculateLength2D()
GeometryGeometryEnginecalculateLength2D in class Geometrypublic boolean isCurve()
public void queryEnvelope(Envelope env)
GeometryqueryEnvelope in class Geometryenv - The envelope to return the result in.public void queryEnvelope2D(Envelope2D env)
GeometryqueryEnvelope2D in class Geometrypublic void applyTransformation(Transformation2D transform)
GeometryapplyTransformation in class Geometrytransform - The affine transformation to be applied to this geometry.public Geometry createInstance()
GeometrycreateInstance in class Geometrypublic double getAttributeAsDbl(double t,
int semantics,
int ordinate)
SegmentgetAttributeAsDbl in class Segmentpublic int intersectionWithAxis2D(boolean b_axis_x,
double ordinate,
double[] result_ordinates,
double[] parameters)
SegmentintersectionWithAxis2D 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.public void replaceNaNs(int semantics,
double value)
GeometryreplaceNaNs in class GeometryCopyright © 2015. All Rights Reserved.