public abstract class CubicCurve2D extends Object implements Shape, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
CubicCurve2D.Double |
static class |
CubicCurve2D.Float |
Modifier | Constructor and Description |
---|---|
protected |
CubicCurve2D() |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
boolean |
contains(double px, double py) |
boolean |
contains(double rx, double ry, double rw, double rh) |
boolean |
contains(Point2D p) |
boolean |
contains(Rectangle2D r) |
Rectangle |
getBounds() |
abstract Point2D |
getCtrlP1() |
abstract Point2D |
getCtrlP2() |
abstract double |
getCtrlX1() |
abstract double |
getCtrlX2() |
abstract double |
getCtrlY1() |
abstract double |
getCtrlY2() |
double |
getFlatness() |
static double |
getFlatness(double[] coords, int offset) |
static double |
getFlatness(double x1, double y1, double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double y2) |
double |
getFlatnessSq() |
static double |
getFlatnessSq(double[] coords, int offset) |
static double |
getFlatnessSq(double x1, double y1, double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double y2) |
abstract Point2D |
getP1() |
abstract Point2D |
getP2() |
PathIterator |
getPathIterator(AffineTransform t) |
PathIterator |
getPathIterator(AffineTransform at, double flatness) |
abstract double |
getX1() |
abstract double |
getX2() |
abstract double |
getY1() |
abstract double |
getY2() |
boolean |
intersects(double rx, double ry, double rw, double rh) |
boolean |
intersects(Rectangle2D r) |
void |
setCurve(CubicCurve2D curve) |
void |
setCurve(double[] coords, int offset) |
abstract void |
setCurve(double x1, double y1, double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double y2) |
void |
setCurve(Point2D[] points, int offset) |
void |
setCurve(Point2D p1, Point2D cp1, Point2D cp2, Point2D p2) |
static int |
solveCubic(double[] eqn) |
static int |
solveCubic(double[] eqn, double[] res) |
void |
subdivide(CubicCurve2D left, CubicCurve2D right) |
static void |
subdivide(CubicCurve2D src, CubicCurve2D left, CubicCurve2D right) |
static void |
subdivide(double[] src, int srcOff, double[] left, int leftOff, double[] right, int rightOff) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBounds2D
public abstract double getX1()
public abstract double getY1()
public abstract Point2D getP1()
public abstract double getCtrlX1()
public abstract double getCtrlY1()
public abstract Point2D getCtrlP1()
public abstract double getCtrlX2()
public abstract double getCtrlY2()
public abstract Point2D getCtrlP2()
public abstract double getX2()
public abstract double getY2()
public abstract Point2D getP2()
public abstract void setCurve(double x1, double y1, double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double y2)
public void setCurve(double[] coords, int offset)
public void setCurve(Point2D[] points, int offset)
public void setCurve(CubicCurve2D curve)
public double getFlatnessSq()
public static double getFlatnessSq(double x1, double y1, double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double y2)
public static double getFlatnessSq(double[] coords, int offset)
public double getFlatness()
public static double getFlatness(double x1, double y1, double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double y2)
public static double getFlatness(double[] coords, int offset)
public void subdivide(CubicCurve2D left, CubicCurve2D right)
public static void subdivide(CubicCurve2D src, CubicCurve2D left, CubicCurve2D right)
public static void subdivide(double[] src, int srcOff, double[] left, int leftOff, double[] right, int rightOff)
public static int solveCubic(double[] eqn)
public static int solveCubic(double[] eqn, double[] res)
public boolean contains(double rx, double ry, double rw, double rh)
public boolean intersects(double rx, double ry, double rw, double rh)
intersects
in interface Shape
public boolean intersects(Rectangle2D r)
intersects
in interface Shape
public boolean contains(Rectangle2D r)
public PathIterator getPathIterator(AffineTransform t)
getPathIterator
in interface Shape
public PathIterator getPathIterator(AffineTransform at, double flatness)
getPathIterator
in interface Shape
Copyright © 1998–2018. All rights reserved.