Approximates conic with quad array. Conic is constructed from start Point p0, control Point p1, end Point p2, and weight w. Quad array is stored in pts; this storage is supplied by caller. Maximum quad count is 2 to the pow2. Every third point in array shares last Point of
(Point p0, Point p1, Point p2, float w, int pow2)
| 1201 | * @return number of quad curves written to pts |
| 1202 | */ |
| 1203 | public static Point[] convertConicToQuads(Point p0, Point p1, Point p2, float w, int pow2) { |
| 1204 | Stats.onNativeCall(); |
| 1205 | return _nConvertConicToQuads(p0._x, p0._y, p1._x, p1._y, p2._x, p2._y, w, pow2); |
| 1206 | } |
| 1207 | |
| 1208 | /** |
| 1209 | * <p>Returns Rect if Path is equivalent to Rect when filled.</p> |