Segment.SplitResults| Modifier and Type | Field and Description |
|---|---|
Point2D.Double |
p1 |
Point2D.Double |
p2 |
| Constructor and Description |
|---|
Linear() |
Linear(double x1,
double y1,
double x2,
double y2) |
Linear(Point2D.Double p1,
Point2D.Double p2) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
Point2D.Double |
eval(double t) |
Point2D.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(double t,
Linear l0,
Linear l1)
Subdivides this Cubic curve into two curves.
|
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(Segment s0,
Segment s1)
Subdivides this Linear segment into two segments at t = 0.5.
|
String |
toString() |
public Point2D.Double p1
public Point2D.Double p2
public Linear()
public Linear(double x1,
double y1,
double x2,
double y2)
public Linear(Point2D.Double p1, Point2D.Double p2)
public Segment reverse()
public Rectangle2D getBounds2D()
getBounds2D in interface Segmentpublic Point2D.Double evalDt(double t)
public Point2D.Double eval(double t)
public Segment.SplitResults split(double y)
public Segment getSegment(double t0, double t1)
getSegment in interface Segmentpublic Segment splitBefore(double t)
splitBefore in interface Segmentpublic Segment splitAfter(double t)
splitAfter in interface Segmentpublic void subdivide(Segment s0, Segment s1)
public void subdivide(double t,
Segment s0,
Segment s1)
public void subdivide(Linear l0, Linear l1)
l0 - if non-null contains portion of curve from 0->.5l1 - if non-null contains portion of curve from .5->1public void subdivide(double t,
Linear l0,
Linear l1)
t - position to split the curvel0 - if non-null contains portion of curve from 0->tl1 - if non-null contains portion of curve from t->1Copyright © 2000–2024 Apache Software Foundation. All rights reserved.