/* * Copyright 2023 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file.
*/ #include"include/core/SkRSXform.h"
void SkRSXform::toQuad(SkScalar width, SkScalar height, SkPoint quad[4]) const { #if 0 // This is the slow way, but it documents what we're doing
quad[0].set(0, 0);
quad[1].set(width, 0);
quad[2].set(width, height);
quad[3].set(0, height);
SkMatrix m;
m.setRSXform(*this).mapPoints(quad, quad, 4); #else const SkScalar m00 = fSCos; const SkScalar m01 = -fSSin; const SkScalar m02 = fTx; const SkScalar m10 = -m01; const SkScalar m11 = m00; const SkScalar m12 = fTy;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.