Class DoubleSpline
java.lang.Object
com.treemap.swing.voronoi.smoothing.AbstractSmoothedSegment
com.treemap.swing.voronoi.smoothing.DoubleSpline
- All Implemented Interfaces:
SmoothedSegment
-
Constructor Summary
ConstructorsConstructorDescriptionDoubleSpline
(LineSegment lineSegment, SegmentDirection direction) DoubleSpline
(CubicCurve2D startToConnectingPoint, CubicCurve2D connectingPointToEnd, Vertex startVertex, Vertex endVertex, LineSegment lineSegment) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCurveToGeneralPath
(GeneralPath generalPath, SegmentDirection direction) void
addToGeneralPath
(GeneralPath generalPath) void
getCurveControlPoints
(Point2d[] knots, Point2d[] firstControlPoints, Point2d[] secondControlPoints) Get open-ended Bezier Spline Control Points.getNearestSegmentLocation
(Vertex vertex) getSubCruveFromConnectingPoint
(CurveLocation curveLocation) getSubSegment
(SegmentLocation start, SegmentLocation end) reversed()
Methods inherited from class com.treemap.swing.voronoi.smoothing.AbstractSmoothedSegment
getEndVertex, getLineSegment, getStartVertex
-
Constructor Details
-
DoubleSpline
-
DoubleSpline
public DoubleSpline(CubicCurve2D startToConnectingPoint, CubicCurve2D connectingPointToEnd, Vertex startVertex, Vertex endVertex, LineSegment lineSegment)
-
-
Method Details
-
getConnectingPoint
-
getStartCurve
-
getNearestSegmentLocation
-
getSubSegment
-
getSubCruveFromConnectingPoint
-
addCurveToGeneralPath
-
getCurveControlPoints
public void getCurveControlPoints(Point2d[] knots, Point2d[] firstControlPoints, Point2d[] secondControlPoints) Get open-ended Bezier Spline Control Points. From (http://www.codeproject.com/KB/graphics/BezierSpline.aspx?msg=3396481) License (CPOL) 1.02 : Source Code and Executable Files can be used in commercial applications; Source Code and Executable Files can be redistributed; and Source Code can be modified to create derivative works.*- Parameters:
knots
- Input Knot Bezier spline points.firstControlPoints
- Output of First Control pointssecondControlPoints
- Output of Second Control points
-
addToGeneralPath
-
reversed
-