Segment.SplitResults
Modifier and Type | Field and Description |
---|---|
java.awt.geom.Point2D.Double |
p1 |
java.awt.geom.Point2D.Double |
p2 |
Constructor and Description |
---|
Linear() |
Linear(double x1,
double y1,
double x2,
double y2) |
Linear(java.awt.geom.Point2D.Double p1,
java.awt.geom.Point2D.Double p2) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
java.awt.geom.Point2D.Double |
eval(double t) |
java.awt.geom.Point2D.Double |
evalDt(double t) |
java.awt.geom.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.
|
java.lang.String |
toString() |
public Linear()
public Linear(double x1, double y1, double x2, double y2)
public Linear(java.awt.geom.Point2D.Double p1, java.awt.geom.Point2D.Double p2)
public java.lang.Object clone()
clone
in class java.lang.Object
public Segment reverse()
public java.awt.geom.Rectangle2D getBounds2D()
getBounds2D
in interface Segment
public java.awt.geom.Point2D.Double evalDt(double t)
public Segment.SplitResults split(double y)
public Segment getSegment(double t0, double t1)
getSegment
in interface Segment
public Segment splitBefore(double t)
splitBefore
in interface Segment
public Segment splitAfter(double t)
splitAfter
in interface Segment
public 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->1public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2022 Apache Software Foundation. All Rights Reserved.