Package org.apache.batik.ext.awt.geom
Class Linear
- java.lang.Object
-
- org.apache.batik.ext.awt.geom.Linear
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.batik.ext.awt.geom.Segment
Segment.SplitResults
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classjava.lang.Object
-
reverse
public Segment reverse()
-
getBounds2D
public java.awt.geom.Rectangle2D getBounds2D()
- Specified by:
getBounds2D
in interfaceSegment
-
evalDt
public java.awt.geom.Point2D.Double evalDt(double t)
-
split
public Segment.SplitResults split(double y)
-
getSegment
public Segment getSegment(double t0, double t1)
- Specified by:
getSegment
in interfaceSegment
-
splitBefore
public Segment splitBefore(double t)
- Specified by:
splitBefore
in interfaceSegment
-
splitAfter
public Segment splitAfter(double t)
- Specified by:
splitAfter
in interfaceSegment
-
subdivide
public 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.
-
subdivide
public void subdivide(double t, Segment s0, Segment s1)
Subdivides this Linear segment into two segments at given t.
-
subdivide
public void subdivide(Linear l0, Linear l1)
Subdivides this Cubic curve into two curves at t = 0.5. Can be done with getSegment but this is more efficent.- Parameters:
l0
- if non-null contains portion of curve from 0->.5l1
- if non-null contains portion of curve from .5->1
-
subdivide
public void subdivide(double t, Linear l0, Linear l1)
Subdivides this Cubic curve into two curves. Can be done with getSegment but this is more efficent.- Parameters:
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->1
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-