div[1].render(ret,limit); |
div[1].render(ret,limit); |
} |
} |
} |
} |
|
public OutlineComponent plus(Point point){ |
|
return new Bezier(p0.plus(point),p1.plus(point),p2.plus(point),p3.plus(point)); |
|
} |
|
public OutlineComponent rot(double theta){ |
|
return new Bezier(p0.rot(theta),p1.rot(theta),p2.rot(theta),p3.rot(theta)); |
|
} |
|
public OutlineComponent times(double ratio){ |
|
return new Bezier(p0.times(ratio),p1.times(ratio),p2.times(ratio),p3.times(ratio)); |
|
} |
|
public OutlineComponent timesY(double ratio){ |
|
return new Bezier(p0.timesY(ratio),p1.timesY(ratio),p2.timesY(ratio),p3.timesY(ratio)); |
|
} |
|
public Point firstPoint(){ return p0;} |
|
public Point lastPoint(){ return p3;} |
|
public String toString(){ |
|
return "Bezier("+p0+","+p1+","+p2+","+p3+")"; |
|
} |
} |
} |