|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itextpdf.text.pdf.parser.BezierCurve
public class BezierCurve
Represents a Bezier curve.
| Field Summary | |
|---|---|
static double |
curveCollinearityEpsilon
If the distance between a point and a line is less than this constant, then we consider the point lies on the line. |
static double |
distanceToleranceManhattan
The Manhattan distance is used in the case when either the line ((x1, y1), (x4, y4)) passes through both (x2, y2) and (x3, y3) or (x1, y1) = (x4, y4). |
static double |
distanceToleranceSquare
In the case when neither the line ((x1, y1), (x4, y4)) passes through both (x2, y2) and (x3, y3) nor (x1, y1) = (x4, y4) we use the square of the sum of the distances mentioned below in compare to this field as the criterion of good approximation. |
| Constructor Summary | |
|---|---|
BezierCurve(List<Point2D> controlPoints)
Constructs new bezier curve. |
|
| Method Summary | |
|---|---|
List<Point2D> |
getBasePoints()
Treat base points as the points which are enough to construct a shape. |
List<Point2D> |
getPiecewiseLinearApproximation()
You can adjust precision of the approximation by varying the following parameters: curveCollinearityEpsilon, distanceToleranceSquare,
distanceToleranceManhattan |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static double curveCollinearityEpsilon
public static double distanceToleranceSquare
public static double distanceToleranceManhattan
| Constructor Detail |
|---|
public BezierCurve(List<Point2D> controlPoints)
controlPoints - Curve's control points.| Method Detail |
|---|
public List<Point2D> getBasePoints()
getBasePoints in interface ShapeList consisting of shape's base points.public List<Point2D> getPiecewiseLinearApproximation()
curveCollinearityEpsilon, distanceToleranceSquare,
distanceToleranceManhattan
List containing points of piecewise linear approximation
for this bezier curve.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||