public abstract class Curve extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
RECT_INTERSECTS
The rectangle intersection test counts the number of times
that the path crosses through the shadow that the rectangle
projects to the right towards (x => +INFINITY).
|
| Constructor and Description |
|---|
Curve() |
| Modifier and Type | Method and Description |
|---|---|
static int |
pointCrossingsForCubic(double px,
double py,
double x0,
double y0,
double xc0,
double yc0,
double xc1,
double yc1,
double x1,
double y1,
int level)
Calculates the number of times the cubic from (x0,y0) to (x1,y1)
crosses the ray extending to the right from (px,py).
|
static int |
pointCrossingsForLine(double px,
double py,
double x0,
double y0,
double x1,
double y1)
Calculates the number of times the line from (x0,y0) to (x1,y1)
crosses the ray extending to the right from (px,py).
|
static int |
pointCrossingsForPath(PathIterator pi,
double px,
double py)
Calculates the number of times the given path
crosses the ray extending to the right from (px,py).
|
static int |
pointCrossingsForQuad(double px,
double py,
double x0,
double y0,
double xc,
double yc,
double x1,
double y1,
int level)
Calculates the number of times the quad from (x0,y0) to (x1,y1)
crosses the ray extending to the right from (px,py).
|
static int |
rectCrossingsForCubic(int crossings,
double rxmin,
double rymin,
double rxmax,
double rymax,
double x0,
double y0,
double xc0,
double yc0,
double xc1,
double yc1,
double x1,
double y1,
int level)
Accumulate the number of times the cubic crosses the shadow
extending to the right of the rectangle.
|
static int |
rectCrossingsForLine(int crossings,
double rxmin,
double rymin,
double rxmax,
double rymax,
double x0,
double y0,
double x1,
double y1)
Accumulate the number of times the line crosses the shadow
extending to the right of the rectangle.
|
static int |
rectCrossingsForPath(PathIterator pi,
double rxmin,
double rymin,
double rxmax,
double rymax)
Accumulate the number of times the path crosses the shadow
extending to the right of the rectangle.
|
static int |
rectCrossingsForQuad(int crossings,
double rxmin,
double rymin,
double rxmax,
double rymax,
double x0,
double y0,
double xc,
double yc,
double x1,
double y1,
int level)
Accumulate the number of times the quad crosses the shadow
extending to the right of the rectangle.
|
public static final int RECT_INTERSECTS
public static int pointCrossingsForPath(PathIterator pi, double px, double py)
public static int pointCrossingsForLine(double px,
double py,
double x0,
double y0,
double x1,
double y1)
public static int pointCrossingsForQuad(double px,
double py,
double x0,
double y0,
double xc,
double yc,
double x1,
double y1,
int level)
public static int pointCrossingsForCubic(double px,
double py,
double x0,
double y0,
double xc0,
double yc0,
double xc1,
double yc1,
double x1,
double y1,
int level)
public static int rectCrossingsForPath(PathIterator pi, double rxmin, double rymin, double rxmax, double rymax)
public static int rectCrossingsForLine(int crossings,
double rxmin,
double rymin,
double rxmax,
double rymax,
double x0,
double y0,
double x1,
double y1)
public static int rectCrossingsForQuad(int crossings,
double rxmin,
double rymin,
double rxmax,
double rymax,
double x0,
double y0,
double xc,
double yc,
double x1,
double y1,
int level)
public static int rectCrossingsForCubic(int crossings,
double rxmin,
double rymin,
double rxmax,
double rymax,
double x0,
double y0,
double xc0,
double yc0,
double xc1,
double yc1,
double x1,
double y1,
int level)
Copyright © 2015. All rights reserved.