math.geom2d.circulinear
Interface CirculinearCurve2D

Package class diagram package CirculinearCurve2D
All Superinterfaces:
CirculinearShape2D, Cloneable, Curve2D, Serializable, Shape2D
All Known Subinterfaces:
CircleLine2D, CircularShape2D, CirculinearBoundary2D, CirculinearContinuousCurve2D, CirculinearContour2D, CirculinearElement2D, CirculinearRing2D, ContinuousCirculinearCurve2D, LinearShape2D
All Known Implementing Classes:
AbstractLine2D, BoundaryPolyCirculinearCurve2D, Circle2D, CircleArc2D, CirculinearBoundarySet2D, CirculinearCurveSet2D, ClosedPolyline2D, GenericCirculinearRing2D, InvertedRay2D, Line2D, LineArc2D, LinearRing2D, LineObject2D, LineSegment2D, PolyCirculinearCurve2D, Polyline2D, Polyline2D, Ray2D, Ring2D, StraightLine2D

public interface CirculinearCurve2D
extends CirculinearShape2D, Curve2D

Circulinear curve are composed of linear and/or circular elements. Linear elements are line segments, straight lines, rays... Circular elements are circles and circle arcs.

Circulinear curves provide a convenient way to store result of geometric operation like buffer computation. Moreover, the set of circulinear curves is stable with respect to circle inversion.

Author:
dlegland

Field Summary
 
Fields inherited from interface math.geom2d.Shape2D
ACCURACY
 
Method Summary
 CurveSet2D clip(Box2D box)
          Clip the shape with the given box, and returns a new shape.
 Collection<? extends CirculinearContinuousCurve2D> getContinuousCurves()
          Returns the collection of continuous circulinear curves which constitute this curve.
 double getLength()
           
 double getLength(double pos)
           
 Curve2D getParallel(double d)
          Creates a new curve, formed by the points with parameterization: p(t) = c(t) + d*n(t)/|n(t)|, with p(t) being a point of the original curve, n(t) the normal of the curve, and |n| being the norm of n.
In the case of a continuous curve formed by several smooth circulinear elements, the parallels of contiguous elements are joined by a circle arc.
 double getPosition(double length)
           
 Curve2D getReverseCurve()
          Returns the curve with same trace on the plane with parametrization in reverse order.
 Curve2D getSubCurve(double t0, double t1)
          Returns a portion of the original curve, delimited by two positions on the curve.
 Curve2D transform(CircleInversion2D inv)
          Transforms the shape by a circle inversion.
 
Methods inherited from interface math.geom2d.circulinear.CirculinearShape2D
getBuffer
 
Methods inherited from interface math.geom2d.curve.Curve2D
clone, draw, getAsAWTShape, getFirstPoint, getIntersections, getLastPoint, getPoint, getPosition, getSingularPoints, getT0, getT1, isSingular, project, transform
 
Methods inherited from interface math.geom2d.Shape2D
contains, contains, getBoundingBox, getDistance, getDistance, isBounded, isEmpty
 

Method Detail

getLength

double getLength()
Returns:
the length of the curve

getLength

double getLength(double pos)
Returns:
the length from the beginning to the position given by pos

getPosition

double getPosition(double length)
Returns:
the position located at distance 'length' from the origin

getParallel

Curve2D getParallel(double d)
Creates a new curve, formed by the points with parameterization: p(t) = c(t) + d*n(t)/|n(t)|, with p(t) being a point of the original curve, n(t) the normal of the curve, and |n| being the norm of n.
In the case of a continuous curve formed by several smooth circulinear elements, the parallels of contiguous elements are joined by a circle arc.

Parameters:
d - the distance between the original curve and he parallel curve.
Returns:
the parallel curve

transform

Curve2D transform(CircleInversion2D inv)
Description copied from interface: CirculinearShape2D
Transforms the shape by a circle inversion. The result is still an instance a CirculinearShape2D.

Specified by:
transform in interface CirculinearShape2D
Parameters:
inv - the circle inversion
Returns:
the transformed shape

getContinuousCurves

Collection<? extends CirculinearContinuousCurve2D> getContinuousCurves()
Returns the collection of continuous circulinear curves which constitute this curve.

Specified by:
getContinuousCurves in interface Curve2D
Returns:
a collection of continuous circulinear curves.

clip

CurveSet2D clip(Box2D box)
Description copied from interface: Shape2D
Clip the shape with the given box, and returns a new shape. The box must be bounded.

Specified by:
clip in interface Curve2D
Specified by:
clip in interface Shape2D
Parameters:
box - the clipping box
Returns:
the clipped shape

getSubCurve

Curve2D getSubCurve(double t0,
                    double t1)
Description copied from interface: Curve2D
Returns a portion of the original curve, delimited by two positions on the curve.

Specified by:
getSubCurve in interface Curve2D
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.

getReverseCurve

Curve2D getReverseCurve()
Description copied from interface: Curve2D
Returns the curve with same trace on the plane with parametrization in reverse order.

Specified by:
getReverseCurve in interface Curve2D


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.