41 dst->fOrigin = {
x,
y, z};
49 return cx *
dx + cy * dy + cz * dz;
72void SkCamera3D::doUpdate()
const {
116 fNeedToUpdate =
false;
144 patchPtr = (
const SkScalar*)(
const void*)&diff;
158 while (rec != &fInitialRec) {
159 Rec*
next = rec->fNext;
168 rec->fMatrix = fRec->fMatrix;
174 Rec*
next = fRec->fNext;
179#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
189SkScalar Sk3DView::getCameraLocationX()
const {
193SkScalar Sk3DView::getCameraLocationY()
const {
197SkScalar Sk3DView::getCameraLocationZ()
const {
203 fRec->fMatrix.preTranslate(
x,
y, z);
static float next(float f)
static SkScalar SkScalarDotDiv(int count, const SkScalar a[], int step_a, const SkScalar b[], int step_b, SkScalar denom)
void getMatrix(SkMatrix *) const
void applyToCanvas(SkCanvas *) const
void rotateZ(SkScalar deg)
SkScalar dotWithNormal(SkScalar dx, SkScalar dy, SkScalar dz) const
void rotateX(SkScalar deg)
void translate(SkScalar x, SkScalar y, SkScalar z)
void rotateY(SkScalar deg)
void patchToMatrix(const SkPatch3D &, SkMatrix *matrix) const
void concat(const SkMatrix &matrix)
static SkM44 Rotate(SkV3 axis, SkScalar radians)
static constexpr int kMScaleX
horizontal scale factor
static constexpr int kMTransY
vertical translation
static constexpr int kMPersp1
input y perspective factor
SkMatrix & set(int index, SkScalar value)
static constexpr int kMPersp0
input x perspective factor
static constexpr int kMPersp2
perspective bias
static constexpr int kMTransX
horizontal translation
static constexpr int kMSkewY
vertical skew factor
static constexpr int kMScaleY
vertical scale factor
static constexpr int kMSkewX
horizontal skew factor
SkScalar dotWith(SkScalar dx, SkScalar dy, SkScalar dz) const
void transform(const SkM44 &, SkPatch3D *dst=nullptr) const
unsigned useCenter Optional< SkMatrix > matrix
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx
int64_t cross(Point d0, Point d1)
SINT T dot(const Vec< N, T > &a, const Vec< N, T > &b)
SkV3 cross(const SkV3 &v) const
SkScalar dot(const SkV3 &v) const