LinearCurve2D function ( int arg0 ) { if ( ! this . isBounded ( ) ) throw new UnboundedShape2DException ( this ) ; if ( this . isClosed ( ) ) { return asPolylineClosed ( arg0 ) ; } else { return asPolylineOpen ( arg0 ) ; } }
converts this continuous curve to an instance of linearcurve2d with the given number of edges . returns either an instance of polyline2d or linearring2d , depending on the curve is closed or not . this method can be overridden to return the correct type . concode_field_sep PlaceHolder placeHolder concode_field_sep Polyline2D asPolylineOpen concode_elem_sep Point2D lastPoint concode_elem_sep Collection<T> wrapCurve concode_elem_sep LinearRing2D asPolylineClosed concode_elem_sep Collection<? extends ContinuousCurve2D> continuousCurves concode_elem_sep Point2D firstPoint concode_elem_sep ContinuousCurve2D clone concode_elem_sep void draw concode_elem_sep Shape asAwtShape