org.apache.batik.ext.awt.geom
public class Linear extends Object implements Segment
Field Summary | |
---|---|
Double | p1 |
Double | p2 |
Constructor Summary | |
---|---|
Linear() | |
Linear(double x1, double y1, double x2, double y2) | |
Linear(Double p1, Double p2) |
Method Summary | |
---|---|
Object | clone() |
Double | eval(double t) |
Double | evalDt(double t) |
Rectangle2D | getBounds2D() |
double | getLength() |
double | getLength(double maxErr) |
Segment | getSegment(double t0, double t1) |
double | maxX() |
double | maxY() |
double | minX() |
double | minY() |
Segment | reverse() |
Segment.SplitResults | split(double y) |
Segment | splitAfter(double t) |
Segment | splitBefore(double t) |
void | subdivide(Segment s0, Segment s1)
Subdivides this Linear segment into two segments at t = 0.5.
can be done with getSegment but this is more efficent. |
void | subdivide(double t, Segment s0, Segment s1)
Subdivides this Linear segment into two segments at given t. |
void | subdivide(Linear l0, Linear l1)
Subdivides this Cubic curve into two curves at t = 0.5.
|
void | subdivide(double t, Linear l0, Linear l1)
Subdivides this Cubic curve into two curves.
|
String | toString() |
Parameters: s0 if non-null contains portion of curve from 0->.5 s1 if non-null contains portion of curve from .5->1
Parameters: s0 if non-null contains portion of curve from 0->t. s1 if non-null contains portion of curve from t->1.
Parameters: l0 if non-null contains portion of curve from 0->.5 l1 if non-null contains portion of curve from .5->1
Parameters: t position to split the curve l0 if non-null contains portion of curve from 0->t l1 if non-null contains portion of curve from t->1