Flutter Engine
The Flutter Engine
Classes | Functions
SkDiscretePathEffect.cpp File Reference
#include "include/core/SkFlattenable.h"
#include "include/core/SkPath.h"
#include "include/core/SkPathEffect.h"
#include "include/core/SkPathMeasure.h"
#include "include/core/SkPoint.h"
#include "include/core/SkRect.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkScalar.h"
#include "include/core/SkStrokeRec.h"
#include "include/core/SkTypes.h"
#include "include/effects/SkDiscretePathEffect.h"
#include "include/private/base/SkFixed.h"
#include "include/private/base/SkFloatingPoint.h"
#include "src/core/SkPathEffectBase.h"
#include "src/core/SkPointPriv.h"
#include "src/core/SkReadBuffer.h"
#include "src/core/SkWriteBuffer.h"
#include <algorithm>
#include <cstdint>

Go to the source code of this file.

Classes

class  LCGRandom
 
class  SkDiscretePathEffectImpl
 

Functions

static void Perterb (SkPoint *p, const SkVector &tangent, SkScalar scale)
 

Function Documentation

◆ Perterb()

static void Perterb ( SkPoint p,
const SkVector tangent,
SkScalar  scale 
)
static

Definition at line 72 of file SkDiscretePathEffect.cpp.

72 {
73 SkVector normal = tangent;
75 normal.setLength(scale);
76 *p += normal;
77}
static void RotateCCW(const SkPoint &src, SkPoint *dst)
Definition: SkPointPriv.h:72
const Scalar scale