Go to the source code of this file.
|
static bool | arc_is_lone_point (const SkRect &oval, SkScalar startAngle, SkScalar sweepAngle, SkPoint *pt) |
|
static void | angles_to_unit_vectors (SkScalar startAngle, SkScalar sweepAngle, SkVector *startV, SkVector *stopV, SkRotationDirection *dir) |
|
static int | build_arc_conics (const SkRect &oval, const SkVector &start, const SkVector &stop, SkRotationDirection dir, SkConic conics[SkConic::kMaxConicsForArc], SkPoint *singlePt) |
|
static bool | nearly_equal (const SkPoint &a, const SkPoint &b) |
|
◆ angles_to_unit_vectors()
Definition at line 273 of file SkPathBuilder.cpp.
274 {
277
282
283
284
285
286
287
288
289
290
291 if (*startV == *stopV) {
294
296
297 do {
298 stopRad -= deltaRad;
301 } while (*startV == *stopV);
302 }
303 }
305}
@ kCW_SkRotationDirection
@ kCCW_SkRotationDirection
#define SkDegreesToRadians(degrees)
#define SkScalarCopySign(x, y)
static float SkScalarSinSnapToZero(SkScalar radians)
static float SkScalarCosSnapToZero(SkScalar radians)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets dir
◆ arc_is_lone_point()
Definition at line 250 of file SkPathBuilder.cpp.
251 {
253
254
255
257 return true;
259
260
261
262
263
264
266 return true;
267 }
268 return false;
269}
void set(float x, float y)
SkScalar fRight
larger x-axis bounds
constexpr float height() const
constexpr float centerY() const
constexpr float width() const
SkScalar fTop
smaller y-axis bounds
◆ build_arc_conics()
If this returns 0, then the caller should just line-to the singlePt, else it should ignore singlePt and append the specified number of conics.
Definition at line 311 of file SkPathBuilder.cpp.
313 {
315
318
321 matrix.mapXY(stop.
x(), stop.
y(), singlePt);
322 }
324}
unsigned useCenter Optional< SkMatrix > matrix
static int BuildUnitArc(const SkVector &start, const SkVector &stop, SkRotationDirection, const SkMatrix *, SkConic conics[kMaxConicsForArc])
constexpr float y() const
constexpr float x() const
constexpr float centerX() const
◆ nearly_equal()
Definition at line 326 of file SkPathBuilder.cpp.
326 {
329}
static bool SkScalarNearlyEqual(SkScalar x, SkScalar y, SkScalar tolerance=SK_ScalarNearlyZero)