Skia
2DGraphicsLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkRSXform Struct Reference

A compressed form of a rotation+scale matrix. More...

#include <SkRSXform.h>

Public Member Functions

bool rectStaysRect () const
 
void setIdentity ()
 
void set (SkScalar scos, SkScalar ssin, SkScalar tx, SkScalar ty)
 
void toQuad (SkScalar width, SkScalar height, SkPoint quad[4]) const
 
void toQuad (const SkSize &size, SkPoint quad[4]) const
 

Static Public Member Functions

static SkRSXform Make (SkScalar scos, SkScalar ssin, SkScalar tx, SkScalar ty)
 
static SkRSXform MakeFromRadians (SkScalar scale, SkScalar radians, SkScalar tx, SkScalar ty, SkScalar ax, SkScalar ay)
 

Public Attributes

SkScalar fSCos
 
SkScalar fSSin
 
SkScalar fTx
 
SkScalar fTy
 

Detailed Description

A compressed form of a rotation+scale matrix.

[ fSCos -fSSin fTx ] [ fSSin fSCos fTy ] [ 0 0 1 ]


The documentation for this struct was generated from the following file: