Definition at line 197 of file FitCubicToCircleSlide.cpp.
◆ Click()
SampleFitCubicToCircle::Click::Click |
( |
int |
ptIdx | ) |
|
|
inline |
◆ doClick()
Definition at line 201 of file FitCubicToCircleSlide.cpp.
201 {
205 that->fEndptsX[fPtIdx] =
dx/l;
206 that->fEndptsY[fPtIdx] = dy/l;
207 if (that->fEndptsX[0] * that->fEndptsY[1] - that->fEndptsY[0] * that->fEndptsX[1] < 0) {
208 std::swap(that->fEndptsX[0], that->fEndptsX[1]);
209 std::swap(that->fEndptsY[0], that->fEndptsY[1]);
210 fPtIdx = 1 - fPtIdx;
211 }
212 that->fitCubic();
213 }
static constexpr int kCenterX
static constexpr int kCenterY
void swap(sk_sp< T > &a, sk_sp< T > &b)
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx
SIN Vec< N, float > sqrt(const Vec< N, float > &x)
The documentation for this class was generated from the following file: