|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.geometry.jts.spatialschema.geometry.geometry.GenericCurveImpl
org.geotools.geometry.jts.spatialschema.geometry.geometry.LineStringImpl
org.geotools.geometry.jts.spatialschema.geometry.geometry.LineSegmentImpl
public class LineSegmentImpl
Two distinct direct positions
(the start point and end point) joined
by a straight line. Thus its interpolation attribute shall be
LINEAR
.
The default parameterization is:
Any other point in the control point array must fall on this line. The control points of aL = endParam - startParam c(s) = ControlPoint[1]+((s-startParam)/L)*(ControlPoint[2]-ControlPoint[1])
LineSegment
shall all lie on the straight line between its start point and end
point. Between these two points, other positions may be interpolated linearly. The linear
interpolation, given using a constructive parameter t, 0 ? t ? 1.0,
where c(o) = c.startPoint and c(1)=c.endPoint
,
is:
c(t) = c(0)(1-t) + c(1)t
GeometryFactory#createLineSegment
Field Summary |
---|
Fields inherited from class org.geotools.geometry.jts.spatialschema.geometry.geometry.GenericCurveImpl |
---|
parent |
Constructor Summary | |
---|---|
LineSegmentImpl()
|
Method Summary |
---|
Methods inherited from class org.geotools.geometry.jts.spatialschema.geometry.geometry.LineStringImpl |
---|
asLineSegments, asLineString, computeJTSPeer, forConstructiveParam, forParam, getBoundary, getControlPoints, getCurve, getEndConstructiveParam, getEndParam, getEndPoint, getInterpolation, getNumDerivativeInterior, getNumDerivativesAtEnd, getNumDerivativesAtStart, getNumDerivativesInterior, getParamForPoint, getSamplePoints, getStartConstructiveParam, getStartParam, getStartPoint, getTangent, length, length, reverse |
Methods inherited from class org.geotools.geometry.jts.spatialschema.geometry.geometry.GenericCurveImpl |
---|
getJTSGeometry, invalidateCachedJTSPeer, setJTSPeer, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opengis.geometry.coordinate.LineString |
---|
asLineSegments, getControlPoints |
Methods inherited from interface org.opengis.geometry.primitive.CurveSegment |
---|
getBoundary, getCurve, getInterpolation, getNumDerivativesAtEnd, getNumDerivativesAtStart, getNumDerivativesInterior, getSamplePoints, reverse |
Methods inherited from interface org.opengis.geometry.coordinate.GenericCurve |
---|
asLineString, forConstructiveParam, forParam, getEndConstructiveParam, getEndParam, getEndPoint, getParamForPoint, getStartConstructiveParam, getStartParam, getStartPoint, getTangent, length, length |
Methods inherited from interface org.geotools.geometry.jts.JTSGeometry |
---|
getJTSGeometry, invalidateCachedJTSPeer |
Constructor Detail |
---|
public LineSegmentImpl()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |