Flutter Engine
The Flutter Engine
|
#include <SkGeometry.h>
Public Member Functions | |
SkAutoConicToQuads () | |
const SkPoint * | computeQuads (const SkConic &conic, SkScalar tol) |
const SkPoint * | computeQuads (const SkPoint pts[3], SkScalar weight, SkScalar tol) |
int | countQuads () const |
Help class to allocate storage for approximating a conic with N quads.
Definition at line 508 of file SkGeometry.h.
|
inline |
Definition at line 510 of file SkGeometry.h.
Given a conic and a tolerance, return the array of points for the approximating quad(s). Call countQuads() to know the number of quads represented in these points.
The quads are allocated to share end-points. e.g. if there are 4 quads, there will be 9 points allocated as follows quad[0] == pts[0..2] quad[1] == pts[2..4] quad[2] == pts[4..6] quad[3] == pts[6..8]
Definition at line 524 of file SkGeometry.h.
|
inline |
Definition at line 532 of file SkGeometry.h.
|
inline |
Definition at line 539 of file SkGeometry.h.