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.Objectclone()java.awt.geom.Point2D.Doubleeval(double t)java.awt.geom.Point2D.DoubleevalDt(double t)java.awt.geom.Rectangle2DgetBounds2D()doublegetLength()doublegetLength(double maxErr)SegmentgetSegment(double t0, double t1)doublemaxX()doublemaxY()doubleminX()doubleminY()Segmentreverse()Segment.SplitResultssplit(double y)SegmentsplitAfter(double t)SegmentsplitBefore(double t)voidsubdivide(double t, Linear l0, Linear l1)Subdivides this Cubic curve into two curves.voidsubdivide(double t, Segment s0, Segment s1)Subdivides this Linear segment into two segments at given t.voidsubdivide(Linear l0, Linear l1)Subdivides this Cubic curve into two curves at t = 0.5.voidsubdivide(Segment s0, Segment s1)Subdivides this Linear segment into two segments at t = 0.5.java.lang.StringtoString()
-
-
-
Method Detail
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
reverse
public Segment reverse()
-
getBounds2D
public java.awt.geom.Rectangle2D getBounds2D()
- Specified by:
getBounds2Din 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:
getSegmentin interfaceSegment
-
splitBefore
public Segment splitBefore(double t)
- Specified by:
splitBeforein interfaceSegment
-
splitAfter
public Segment splitAfter(double t)
- Specified by:
splitAfterin 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:
toStringin classjava.lang.Object
-
-