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(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 |
---|---|
float |
getArcLength(float start,
float end)
Returns the arc length of the segment up to parametric value t
|
com.reportmill.base.RMMath.RMFunc |
getArcLengthFunction()
Returns an RMFunc which calculates the arclength of the curve up to t
|
static void |
getBounds(double x0,
double y0,
double x1,
double y1,
double x2,
double y2,
java.awt.geom.Rectangle2D aRect)
Returns the bounds of the bezier.
|
void |
getBounds(java.awt.geom.Rectangle2D aRect)
Returns the bounds.
|
double |
getDistance(RMPoint aPoint)
Returns the minimum distance from the given point to this segment.
|
double |
getDistanceQuadratic(RMPoint aPoint)
Returns the minimum distance from the given point to the curve.
|
com.reportmill.base.RMMath.RMFunc |
getInverseArcLengthFunction()
Returns an RMFunc which calculates t for a percentage length along 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.
|
float |
getParameterForLength(float l)
Returns parametric point t that corresponds to a given length along the curve.
|
RMPoint |
getPoint(double t,
RMPoint 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(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.
|
clone, getAngle, getArcLength, getArcLength, getBounds, getDistanceLine, getDistanceLineSquared, getDistanceLineSquared, getHead, getHitInfo, getHitInfo, getHitInfo, getLastX, getLastY, getPoint, getTail, getTangent, setEnd, setStart, toString
public RMPoint _cp1
public RMQuadratic()
public RMQuadratic(RMPoint startPoint, RMPoint controlPoint, RMPoint endPoint)
public RMQuadratic(double x1, double y1, double x2, double y2, double x3, double y3)
public void setCurve(double x1, double y1, double x2, double y2, double x3, double y3)
public RMPoint getPoint(double t, RMPoint aPoint)
public double getDistance(RMPoint aPoint)
getDistance
in class RMLine
public double getDistanceQuadratic(RMPoint aPoint)
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(java.awt.geom.Rectangle2D aRect)
public static void getBounds(double x0, double y0, double x1, double y1, double x2, double y2, java.awt.geom.Rectangle2D aRect)
public float getArcLength(float start, float end)
getArcLength
in class RMLine
public com.reportmill.base.RMMath.RMFunc getArcLengthFunction()
public float getParameterForLength(float l)
getParameterForLength
in class RMLine
public com.reportmill.base.RMMath.RMFunc getInverseArcLengthFunction()