Lines Matching refs:SkM44
64 SkM44 computeRotation(SkV2 a, SkV2 b) const { in computeRotation()
66 return SkM44::Rotate(axis, angle); in computeRotation()
70 static SkM44 inv(const SkM44& m) { in inv()
71 SkM44 inverse; in inv()
77 static SkM44 normals(SkM44 m) { in normals()
96 SkM44 camera = SkM44::LookAt(fEye, fCOA, fUp), in concatCamera()
97 perspective = SkM44::Perspective(fNear, fFar, fAngle), in concatCamera()
98 viewport = SkM44::Translate(area.centerX(), area.centerY(), 0) * in concatCamera()
99 SkM44::Scale(area.width()*0.5f, area.height()*0.5f, zscale); in concatCamera()
109 static SkM44 T(SkScalar x, SkScalar y, SkScalar z) { in T()
110 return SkM44::Translate(x, y, z); in T()
113 static SkM44 R(SkV3 axis, SkScalar rad) { in R()
114 return SkM44::Rotate(axis, rad); in R()
117 SkM44 asM44(SkScalar scale) const { in asM44()
122 static bool isFrontFacing(const SkM44& m) { in isFrontFacing()
123 SkM44 m2(SkM44::kUninitialized_Constructor); in isFrontFacing()
196 SkM44 rotation() { in rotation()
208 return SkM44::Rotate(fAxis, fAngle); in rotation()
239 SkM44 fRotation; // part of model
268 virtual void drawFace(SkCanvas*, SkColor, int face, bool front, const SkM44& localToWorld) = 0;
280 SkM44 m = fRotateAnimator.rotation() * fRotation; in draw()
286 SkM44 trans = SkM44::Translate(200, 200, 0); // center of the rotation in draw()
291 SkM44 localToWorld = m * f.asM44(200) * inv(trans); in draw()
408 const SkM44& localToWorld) override { in drawFace()
455 void drawFace(SkCanvas* canvas, SkColor color, int face, bool front, const SkM44&) override { in drawFace() argument