Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/gfx/skia/skia/src/utils/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 748 B image not shown  

Quelle  SkMatrix22.h

  Sprache: C
 

/*
 * Copyright 2014 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */


#ifndef SkMatrix22_DEFINED
#define SkMatrix22_DEFINED

#include "include/core/SkPoint.h"

class SkMatrix;

/** Find the Givens matrix G, which is the rotational matrix
 *  that rotates the vector h to the positive hoizontal axis.
 *  G * h = [hypot(h), 0]
 *
 *  This is equivalent to
 *
 *  SkScalar r = h.length();
 *  SkScalar r_inv = r ? SkScalarInvert(r) : 0;
 *  h.scale(r_inv);
 *  G->setSinCos(-h.fY, h.fX);
 *
 *  but has better numerical stability by using (partial) hypot,
 *  and saves a multiply by not computing r.
 */

void SkComputeGivensRotation(const SkVector& h, SkMatrix* G);

#endif

Messung V0.5 in Prozent
C=89 H=95 G=91

¤ Dauer der Verarbeitung: 0.15 Sekunden  (vorverarbeitet am  2026-08-26) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.