public class RMQuadratic extends RMLine
Constructor and Description |
---|
RMQuadratic()
Creates a new quadratic curve.
|
RMQuadratic(RMPoint startPoint,
RMPoint controlPoint,
RMPoint endPoint)
Creates a new quadratic curve for this gvein start point, control point and end point.
|
Modifier and Type | Method and Description |
---|---|
double |
getDistanceQuadratic(RMPoint aPoint)
Returns the minimum distance from the given point to the curve.
|
float |
getMaxX()
Returns the max x point of this bezier.
|
float |
getMaxY()
Returns the max y point of this bezier.
|
float |
getMinX()
Returns the min x point of this bezier.
|
float |
getMinY()
Returns the min y point of this bezier.
|
RMPoint |
getPoint(double t)
Returns the point on this curve at the parametric location t (defined from 0-1).
|
void |
setCurve(float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
Sets the curve values.
|
void |
setCurve(RMPoint p1,
RMPoint p2,
RMPoint p3)
Sets the curve values.
|
void |
subdivide(RMQuadratic left,
RMQuadratic right)
Subdivides this curve into the given left and right curves.
|
getDistanceLine, getDistanceToLineSquared, getHead, getHitInfo, getHitInfo, getHitInfo, getTail, setEnd, setStart, toString
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
public RMPoint _cp1
public void setCurve(float x1, float y1, float x2, float y2, float x3, float y3)
public RMPoint getPoint(double t)
public double getDistanceQuadratic(RMPoint aPoint)
public void subdivide(RMQuadratic left, RMQuadratic right)
public float getMinX()
public float getMinY()
public float getMaxX()