Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Functions
SkCornerPathEffect.cpp File Reference
#include "include/effects/SkCornerPathEffect.h"
#include "include/core/SkFlattenable.h"
#include "include/core/SkPath.h"
#include "include/core/SkPathEffect.h"
#include "include/core/SkPoint.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkScalar.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkFloatingPoint.h"
#include "src/core/SkPathEffectBase.h"
#include "src/core/SkReadBuffer.h"
#include "src/core/SkWriteBuffer.h"

Go to the source code of this file.

Classes

class  SkCornerPathEffectImpl
 

Functions

static bool ComputeStep (const SkPoint &a, const SkPoint &b, SkScalar radius, SkPoint *step)
 

Function Documentation

◆ ComputeStep()

static bool ComputeStep ( const SkPoint a,
const SkPoint b,
SkScalar  radius,
SkPoint step 
)
static

Definition at line 26 of file SkCornerPathEffect.cpp.

27 {
29
30 *step = b - a;
31 if (dist <= radius * 2) {
33 return false;
34 } else {
35 *step *= radius / dist;
36 return true;
37 }
38}
static int step(int x, SkScalar min, SkScalar max)
Definition BlurTest.cpp:215
#define SK_ScalarHalf
Definition SkScalar.h:19
float SkScalar
Definition extension.cpp:12
static bool b
struct MyStruct a[10]
static float Distance(const SkPoint &a, const SkPoint &b)