MCPcopy Create free account
hub / github.com/JetBrains/skija / convertConicToQuads

Method convertConicToQuads

shared/java/Path.java:1203–1206  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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>

Callers 1

utilsMethod · 0.95

Calls 2

onNativeCallMethod · 0.95
_nConvertConicToQuadsMethod · 0.95

Tested by 1

utilsMethod · 0.76