math.geom2d.line
Class ClosedPolyline2D

Package class diagram package ClosedPolyline2D
java.lang.Object
  extended by math.geom2d.curve.AbstractContinuousCurve2D
      extended by math.geom2d.polygon.Polyline2D
          extended by math.geom2d.polygon.LinearRing2D
              extended by math.geom2d.polygon.Ring2D
                  extended by 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

Field Summary
 
Fields inherited from class math.geom2d.polygon.Polyline2D
points
 
Fields inherited from interface math.geom2d.Shape2D
ACCURACY
 
Constructor Summary
ClosedPolyline2D()
          Deprecated.  
ClosedPolyline2D(Collection<? extends Point2D> points)
          Deprecated.  
ClosedPolyline2D(double[] xcoords, double[] ycoords)
          Deprecated.  
ClosedPolyline2D(Point2D initialPoint)
          Deprecated.  
ClosedPolyline2D(Point2D[] points)
          Deprecated.  
 
Method Summary
 ClosedPolyline2D getReverseCurve()
          Deprecated. Returns the closed polyline with same points taken in reverse order.
 Polyline2D getSubCurve(double t0, double t1)
          Deprecated. Return an instance of Polyline2D.
 ClosedPolyline2D transform(AffineTransform2D trans)
          Deprecated. Return the transformed shape, as a ClosePolyline2D.
 
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
 
Methods inherited from class math.geom2d.curve.AbstractContinuousCurve2D
draw, getAsAWTShape, getAsPolyline, wrapCurve
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface math.geom2d.circulinear.CirculinearContinuousCurve2D
clip, getSmoothPieces
 
Methods inherited from interface math.geom2d.circulinear.CirculinearCurve2D
getLength, getLength, getPosition
 
Methods inherited from interface math.geom2d.circulinear.CirculinearShape2D
getBuffer
 
Methods inherited from interface math.geom2d.curve.ContinuousCurve2D
getAsPolyline, getLeftTangent, getRightTangent
 
Methods inherited from interface math.geom2d.curve.Curve2D
draw, getAsAWTShape, getIntersections, getPosition, getSingularPoints, isSingular, project
 
Methods inherited from interface math.geom2d.Shape2D
contains, contains, getBoundingBox, getDistance, getDistance, isBounded, isEmpty
 
Methods inherited from interface math.geom2d.circulinear.CirculinearBoundary2D
clip
 

Constructor Detail

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. 
Method Detail

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-curve
t1 - 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 © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.