Companion

object Companion

Functions

Link copied to clipboard
fun convertConicToQuads(p0: Point, p1: Point, p2: Point, w: Float, pow2: Int): Array<Point>

Approximates conic with quad array. Conic is constructed from start Point p0, control Point p1, end Point p2, and weight w.

Link copied to clipboard
fun isCubicDegenerate(p1: Point, p2: Point, p3: Point, p4: Point, exact: Boolean): Boolean

Tests if cubic is degenerate.

Link copied to clipboard
fun isLineDegenerate(p1: Point, p2: Point, exact: Boolean): Boolean

Tests if line between Point pair is degenerate.

Link copied to clipboard
fun isQuadDegenerate(p1: Point, p2: Point, p3: Point, exact: Boolean): Boolean

Tests if quad is degenerate.

Link copied to clipboard
fun makeCombining(one: Path, two: Path, op: PathOp): Path?

Returns Path that is the result of applying the Op to the first path and the second path.

Link copied to clipboard

Initializes Path from byte buffer. Returns null if the buffer is data is inconsistent, or the length is too small.

Link copied to clipboard