math.geom2d.line
Class ClosedPolyline2D
java.lang.Object
math.geom2d.curve.AbstractContinuousCurve2D
math.geom2d.polygon.Polyline2D
math.geom2d.polygon.LinearRing2D
math.geom2d.polygon.Ring2D
math.geom2d.line.ClosedPolyline2D
- All Implemented Interfaces:
- Serializable, Cloneable, CirculinearBoundary2D, CirculinearContinuousCurve2D, CirculinearContour2D, CirculinearCurve2D, CirculinearShape2D, ContinuousCirculinearCurve2D, ContinuousCurve2D, Curve2D, Boundary2D, ContinuousBoundary2D, ContinuousOrientedCurve2D, OrientedCurve2D, Shape2D
Deprecated. use math.geom2d.polygon.Ring2D instead (0.7.0)
@Deprecated
public class ClosedPolyline2D
- extends Ring2D
Extends Polyline2D, by considering that the last point is connected to the
first one. A ClosedPolyline2D can be used as boundary for Polygons.
- Author:
- dlegland
- See Also:
- Serialized Form
| Methods inherited from class math.geom2d.polygon.Ring2D |
clone |
| Methods inherited from class math.geom2d.polygon.LinearRing2D |
appendPath, create, create, equals, fill, getArea, getBoundaryCurves, getContinuousCurves, getDomain, getEdges, getFirstPoint, getGeneralPath, getLastEdge, getLastPoint, getParallel, getPoint, getSignedArea, getSignedDistance, getSignedDistance, getT0, getT1, getWindingAngle, isClosed, isInside, isInside, transform |
| Methods inherited from class math.geom2d.polygon.Polyline2D |
addPoint, clearPoints, clearVertices, clip, contains, contains, getBoundingBox, getBuffer, getDistance, getDistance, getEdge, getFirstEdge, getIntersections, getLeftTangent, getLength, getLength, getPointArray, getPointsIterator, getPosition, getPosition, getRightTangent, getSingularPoints, getSmoothPieces, getVertex, getVertexNumber, getVertices, isBounded, isEmpty, isSingular, project, removePoint |
ClosedPolyline2D
public ClosedPolyline2D()
- Deprecated.
ClosedPolyline2D
public ClosedPolyline2D(Point2D initialPoint)
- Deprecated.
ClosedPolyline2D
public ClosedPolyline2D(Point2D[] points)
- Deprecated.
ClosedPolyline2D
public ClosedPolyline2D(double[] xcoords,
double[] ycoords)
- Deprecated.
ClosedPolyline2D
public ClosedPolyline2D(Collection<? extends Point2D> points)
- Deprecated.
getReverseCurve
public ClosedPolyline2D getReverseCurve()
- Deprecated.
- Returns the closed polyline with same points taken in reverse order. The
first points is still the same. Points of reverse curve are the same as
the original curve (same pointers).
- Specified by:
getReverseCurve in interface CirculinearBoundary2D- Specified by:
getReverseCurve in interface CirculinearContinuousCurve2D- Specified by:
getReverseCurve in interface CirculinearContour2D- Specified by:
getReverseCurve in interface CirculinearCurve2D- Specified by:
getReverseCurve in interface ContinuousCirculinearCurve2D- Specified by:
getReverseCurve in interface ContinuousCurve2D- Specified by:
getReverseCurve in interface Curve2D- Specified by:
getReverseCurve in interface Boundary2D- Specified by:
getReverseCurve in interface ContinuousBoundary2D- Specified by:
getReverseCurve in interface ContinuousOrientedCurve2D- Specified by:
getReverseCurve in interface OrientedCurve2D- Overrides:
getReverseCurve in class LinearRing2D
getSubCurve
public Polyline2D getSubCurve(double t0,
double t1)
- Deprecated.
- Return an instance of Polyline2D. If t1 is lower than t0, the returned
Polyline contains the origin of the curve.
- Specified by:
getSubCurve in interface CirculinearContinuousCurve2D- Specified by:
getSubCurve in interface CirculinearCurve2D- Specified by:
getSubCurve in interface ContinuousCirculinearCurve2D- Specified by:
getSubCurve in interface ContinuousCurve2D- Specified by:
getSubCurve in interface Curve2D- Specified by:
getSubCurve in interface ContinuousOrientedCurve2D- Overrides:
getSubCurve in class LinearRing2D
- Parameters:
t0 - position of the start of the sub-curvet1 - position of the end of the sub-curve
- Returns:
- the portion of original curve comprised between t0 and t1.
transform
public ClosedPolyline2D transform(AffineTransform2D trans)
- Deprecated.
- Return the transformed shape, as a ClosePolyline2D.
- Specified by:
transform in interface ContinuousCurve2D- Specified by:
transform in interface Curve2D- Specified by:
transform in interface Boundary2D- Specified by:
transform in interface ContinuousBoundary2D- Specified by:
transform in interface ContinuousOrientedCurve2D- Specified by:
transform in interface OrientedCurve2D- Specified by:
transform in interface Shape2D- Overrides:
transform in class LinearRing2D
- Parameters:
trans - an affine transform
- Returns:
- the transformed shape
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.