Lines Matching refs:SkM44
9 #include "include/core/SkM44.h"
63 SkM44 computeRotation(SkV2 a, SkV2 b) const {
65 return SkM44::Rotate(axis, angle);
69 static SkM44 inv(const SkM44& m) {
70 SkM44 inverse;
76 static SkM44 normals(SkM44 m) {
95 SkM44 camera = SkM44::LookAt(fEye, fCOA, fUp),
96 perspective = SkM44::Perspective(fNear, fFar, fAngle),
97 viewport = SkM44::Translate(area.centerX(), area.centerY(), 0) *
98 SkM44::Scale(area.width()*0.5f, area.height()*0.5f, zscale);
108 static SkM44 T(SkScalar x, SkScalar y, SkScalar z) {
109 return SkM44::Translate(x, y, z);
112 static SkM44 R(SkV3 axis, SkScalar rad) {
113 return SkM44::Rotate(axis, rad);
116 SkM44 asM44(SkScalar scale) const {
121 static bool front(const SkM44& m) {
122 SkM44 m2(SkM44::kUninitialized_Constructor);
195 SkM44 rotation() {
207 return SkM44::Rotate(fAxis, fAngle);
238 SkM44 fRotation; // part of model
268 SkCanvas* canvas, SkColor, int index, bool drawFront, const SkM44& localToWorld) = 0;
285 SkM44 trans = SkM44::Translate(200, 200, 0); // center of the rotation
286 SkM44 m = fRotateAnimator.rotation() * fRotation * f.asM44(200);
291 SkM44 localToWorld = m * inv(trans);
416 const SkM44& localToWorld) override {
466 SkCanvas* canvas, SkColor color, int index, bool drawFront, const SkM44&) override {