Constructor and Description |
---|
RMQuadratic()
Creates a new quadratic curve.
|
RMQuadratic(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
Creates a new quadratic curve for this gvein start point, control point and end point.
|
RMQuadratic(Point startPoint,
Point cp,
Point endPoint)
Creates a new quadratic curve for this gvein start point, control point and end point.
|
Modifier and Type | Method and Description |
---|---|
static void |
getBounds(double x0,
double y0,
double x1,
double y1,
double x2,
double y2,
Rect aRect)
Returns the bounds of the bezier.
|
void |
getBounds(Rect aRect)
Returns the bounds.
|
Point |
getCP1()
Returns control point 1 as point.
|
double |
getCP1x()
Returns control point 1 x.
|
double |
getCP1y()
Returns control point 1 y.
|
double |
getDistance(double aX,
double aY)
Returns the minimum distance from the given point to this segment.
|
double |
getDistanceQuadratic(double aX,
double aY)
Returns the minimum distance from the given point to the curve.
|
double |
getMaxX()
Returns the max x point of this bezier.
|
double |
getMaxY()
Returns the max y point of this bezier.
|
double |
getMinX()
Returns the min x point of this bezier.
|
double |
getMinY()
Returns the min y point of this bezier.
|
Point |
getPoint(double t,
Point aPoint)
Returns the point on this curve at the parametric location t (defined from 0-1).
|
int |
getPointCount()
Returns the point count of segment.
|
double |
getPointX(int anIndex)
Returns the x of point at given index.
|
double |
getPointY(int anIndex)
Returns the y of point at given index.
|
void |
setCurve(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
Sets the curve values.
|
void |
setCurve(Point p1,
Point p2,
Point p3)
Sets the curve values.
|
void |
subdivide(RMQuadratic left,
RMQuadratic right)
Subdivides this curve into the given left and right curves.
|
clone, getAngle, getBounds, getDistanceLine, getDistanceLineSquared, getDistanceLineSquared, getEP, getEPx, getEPy, getHead, getHitInfo, getHitInfo, getHitInfo, getLastX, getLastY, getPoint, getSP, getSPx, getSPy, getTail, getTangent, setEnd, setStart, toString
public RMQuadratic()
public RMQuadratic(Point startPoint, Point cp, Point endPoint)
public RMQuadratic(double x1, double y1, double x2, double y2, double x3, double y3)
public double getCP1x()
public double getCP1y()
public Point getCP1()
public void setCurve(double x1, double y1, double x2, double y2, double x3, double y3)
public void setCurve(Point p1, Point p2, Point p3)
public Point getPoint(double t, Point aPoint)
public double getDistance(double aX, double aY)
getDistance
in class RMLine
public double getDistanceQuadratic(double aX, double aY)
public int getPointCount()
getPointCount
in class RMLine
public double getPointX(int anIndex)
public double getPointY(int anIndex)
public void subdivide(RMQuadratic left, RMQuadratic right)
public double getMinX()
public double getMinY()
public double getMaxX()
public double getMaxY()
public void getBounds(Rect aRect)
public static void getBounds(double x0, double y0, double x1, double y1, double x2, double y2, Rect aRect)