| Modifier and Type | Class and Description |
|---|---|
| public static class | Crossing.
CubicCurve class provides basic functionality to find curve crossing and calculating bounds |
| public static class | Crossing.
QuadCurve class provides basic functionality to find curve crossing and calculating bounds |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | CROSSING
Rectangle cross segment |
| pack-priv static final float | DELTA
Allowable tolerance for bounds comparison |
| pack-priv static final float | ROOT_DELTA
If roots have distance less then |
| pack-priv static final int | UNKNOWN
Unknown crossing result |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static int | crossBound(final float[] bound, final int bc, final float py1, final float py2)
Returns are bounds intersect or not intersect rectangle |
| public static int | crossCubic(final float x1, final float y1, final float cx1, final float cy1, final float cx2, final float cy2, final float x2, final float y2, final float x, final float y)
Returns how many times ray from point (x,y) cross cubic curve |
| public static int | crossLine(final float x1, final float y1, final float x2, final float y2, final float x, final float y)
Returns how many times ray from point (x,y) cross line. |
| public static int | crossPath(final PathIterator p, final float x, final float y)
Returns how many times ray from point (x,y) cross path |
| public static int | crossQuad(final float x1, final float y1, final float cx, final float cy, final float x2, final float y2, final float x, final float y)
Returns how many times ray from point (x,y) cross quard curve |
| public static int | crossShape(final Path2D s, final float x, final float y)
Returns how many times ray from point (x,y) cross shape |
| pack-priv static int | Returns: new roots count- the roots res, final int - the roots count rc)Excludes float roots. |
| public static int | intersectCubic(final float x1, final float y1, final float cx1, final float cy1, final float cx2, final float cy2, final float x2, final float y2, final float rx1, final float ry1, final float rx2, final float ry2)
Returns how many times rectangle stripe cross cubic curve or the are intersect |
| public static int | intersectLine(final float x1, final float y1, final float x2, final float y2, final float rx1, final float ry1, final float rx2, final float ry2)
Returns how many times rectangle stripe cross line or the are intersect |
| public static int | intersectPath(final PathIterator p, final float x, final float y, final float w, final float h)
Returns how many times rectangle stripe cross path or the are intersect |
| public static int | intersectQuad(final float x1, final float y1, final float cx, final float cy, final float x2, final float y2, final float rx1, final float ry1, final float rx2, final float ry2)
Returns how many times rectangle stripe cross quad curve or the are intersect |
| public static int | intersectShape(final Path2D s, final float x, final float y, final float w, final float h)
Returns how many times rectangle stripe cross shape or the are intersect |
| public static boolean | isInsideEvenOdd(final int cross)
Returns true if cross count correspond inside location for even-odd path rule |
| public static boolean | isInsideNonZero(final int cross)
Returns true if cross count correspond inside location for non zero path rule |
| public static boolean | |
| public static int | Returns: a number of roots- the coefficients of the equation eqn, final float[] - the roots of the equation res)Solves cubic equation |
| public static int | Returns: a number of roots- the coefficients of the equation eqn, final float[] - the roots of the equation res)Solves quadratic equation |
| pack-priv static void |
| CROSSING | back to summary |
|---|---|
| public static final int CROSSING Rectangle cross segment | |
| DELTA | back to summary |
|---|---|
| pack-priv static final float DELTA Allowable tolerance for bounds comparison | |
| ROOT_DELTA | back to summary |
|---|---|
| pack-priv static final float ROOT_DELTA If roots have distance less then | |
| UNKNOWN | back to summary |
|---|---|
| pack-priv static final int UNKNOWN Unknown crossing result | |
| Crossing | back to summary |
|---|---|
| public Crossing() | |
| crossBound | back to summary |
|---|---|
| pack-priv static int crossBound(final float[] bound, final int bc, final float py1, final float py2) Returns are bounds intersect or not intersect rectangle | |
| crossCubic | back to summary |
|---|---|
| public static int crossCubic(final float x1, final float y1, final float cx1, final float cy1, final float cx2, final float cy2, final float x2, final float y2, final float x, final float y) Returns how many times ray from point (x,y) cross cubic curve | |
| crossLine | back to summary |
|---|---|
| public static int crossLine(final float x1, final float y1, final float x2, final float y2, final float x, final float y) Returns how many times ray from point (x,y) cross line. | |
| crossPath | back to summary |
|---|---|
| public static int crossPath(final PathIterator p, final float x, final float y) Returns how many times ray from point (x,y) cross path | |
| crossQuad | back to summary |
|---|---|
| public static int crossQuad(final float x1, final float y1, final float cx, final float cy, final float x2, final float y2, final float x, final float y) Returns how many times ray from point (x,y) cross quard curve | |
| crossShape | back to summary |
|---|---|
| public static int crossShape(final Path2D s, final float x, final float y) Returns how many times ray from point (x,y) cross shape | |
| fixRoots | back to summary |
|---|---|
| pack-priv static int fixRoots(final float[] res, final int rc) Excludes float roots. Roots are float if they lies enough close with each other.
| |
| intersectCubic | back to summary |
|---|---|
| public static int intersectCubic(final float x1, final float y1, final float cx1, final float cy1, final float cx2, final float cy2, final float x2, final float y2, final float rx1, final float ry1, final float rx2, final float ry2) Returns how many times rectangle stripe cross cubic curve or the are intersect | |
| intersectLine | back to summary |
|---|---|
| public static int intersectLine(final float x1, final float y1, final float x2, final float y2, final float rx1, final float ry1, final float rx2, final float ry2) Returns how many times rectangle stripe cross line or the are intersect | |
| intersectPath | back to summary |
|---|---|
| public static int intersectPath(final PathIterator p, final float x, final float y, final float w, final float h) Returns how many times rectangle stripe cross path or the are intersect | |
| intersectQuad | back to summary |
|---|---|
| public static int intersectQuad(final float x1, final float y1, final float cx, final float cy, final float x2, final float y2, final float rx1, final float ry1, final float rx2, final float ry2) Returns how many times rectangle stripe cross quad curve or the are intersect | |
| intersectShape | back to summary |
|---|---|
| public static int intersectShape(final Path2D s, final float x, final float y, final float w, final float h) Returns how many times rectangle stripe cross shape or the are intersect | |
| isInsideEvenOdd | back to summary |
|---|---|
| public static boolean isInsideEvenOdd(final int cross) Returns true if cross count correspond inside location for even-odd path rule | |
| isInsideNonZero | back to summary |
|---|---|
| public static boolean isInsideNonZero(final int cross) Returns true if cross count correspond inside location for non zero path rule | |
| isZero | back to summary |
|---|---|
| public static boolean isZero(final float val) Returns true if value enough small | |
| solveCubic | back to summary |
|---|---|
| public static int solveCubic(final float[] eqn, final float[] res) Solves cubic equation
| |
| solveQuad | back to summary |
|---|---|
| public static int solveQuad(final float[] eqn, final float[] res) Solves quadratic equation
| |
| sortBound | back to summary |
|---|---|
| pack-priv static void sortBound(final float[] bound, final int bc) Sort bound array | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv float | |
| pack-priv float | |
| pack-priv float | |
| pack-priv float | |
| pack-priv float | |
| pack-priv float | |
| pack-priv float | |
| pack-priv float | |
| pack-priv float | |
| pack-priv float | |
| pack-priv float | |
| pack-priv float | |
| pack-priv float | |
| pack-priv float |
| Access | Constructor and Description |
|---|---|
| public | CubicCurve(final float x1, final float y1, final float cx1, final float cy1, final float cx2, final float cy2, final float x2, final float y2)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | addBound(final float[] bound, int bc, final float[] res, final int rc, final float minX, final float maxX, final boolean changeId, int id)
|
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int |
| ax | back to summary |
|---|---|
| pack-priv float ax | |
| Ax | back to summary |
|---|---|
| pack-priv float Ax | |
| Ax3 | back to summary |
|---|---|
| pack-priv float Ax3 | |
| ay | back to summary |
|---|---|
| pack-priv float ay | |
| Ay | back to summary |
|---|---|
| pack-priv float Ay | |
| bx | back to summary |
|---|---|
| pack-priv float bx | |
| Bx | back to summary |
|---|---|
| pack-priv float Bx | |
| Bx2 | back to summary |
|---|---|
| pack-priv float Bx2 | |
| by | back to summary |
|---|---|
| pack-priv float by | |
| By | back to summary |
|---|---|
| pack-priv float By | |
| cx | back to summary |
|---|---|
| pack-priv float cx | |
| Cx | back to summary |
|---|---|
| pack-priv float Cx | |
| cy | back to summary |
|---|---|
| pack-priv float cy | |
| Cy | back to summary |
|---|---|
| pack-priv float Cy | |
| CubicCurve | back to summary |
|---|---|
| public CubicCurve(final float x1, final float y1, final float cx1, final float cy1, final float cx2, final float cy2, final float x2, final float y2) | |
| addBound | back to summary |
|---|---|
| pack-priv int addBound(final float[] bound, int bc, final float[] res, final int rc, final float minX, final float maxX, final boolean changeId, int id) | |
| cross | back to summary |
|---|---|
| pack-priv int cross(final float[] res, final int rc, final float py1, final float py2) | |
| solveExtremX | back to summary |
|---|---|
| pack-priv int solveExtremX(final float[] res) | |
| solveExtremY | back to summary |
|---|---|
| pack-priv int solveExtremY(final float[] res) | |
| solvePoint | back to summary |
|---|---|
| pack-priv int solvePoint(final float[] res, final float px) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv float | |
| pack-priv float | |
| pack-priv float | |
| pack-priv float | |
| pack-priv float | |
| pack-priv float | |
| pack-priv float | |
| pack-priv float |
| Access | Constructor and Description |
|---|---|
| public | QuadCurve(final float x1, final float y1, final float cx, final float cy, final float x2, final float y2)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | addBound(final float[] bound, int bc, final float[] res, final int rc, final float minX, final float maxX, final boolean changeId, int id)
|
| pack-priv int | |
| pack-priv int | |
| pack-priv int |
| ax | back to summary |
|---|---|
| pack-priv float ax | |
| Ax | back to summary |
|---|---|
| pack-priv float Ax | |
| ay | back to summary |
|---|---|
| pack-priv float ay | |
| Ay | back to summary |
|---|---|
| pack-priv float Ay | |
| bx | back to summary |
|---|---|
| pack-priv float bx | |
| Bx | back to summary |
|---|---|
| pack-priv float Bx | |
| by | back to summary |
|---|---|
| pack-priv float by | |
| By | back to summary |
|---|---|
| pack-priv float By | |
| QuadCurve | back to summary |
|---|---|
| public QuadCurve(final float x1, final float y1, final float cx, final float cy, final float x2, final float y2) | |
| addBound | back to summary |
|---|---|
| pack-priv int addBound(final float[] bound, int bc, final float[] res, final int rc, final float minX, final float maxX, final boolean changeId, int id) | |
| cross | back to summary |
|---|---|
| pack-priv int cross(final float[] res, final int rc, final float py1, final float py2) | |
| solveExtrem | back to summary |
|---|---|
| pack-priv int solveExtrem(final float[] res) | |
| solvePoint | back to summary |
|---|---|
| pack-priv int solvePoint(final float[] res, final float px) | |