Skia
2D Graphics Library
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
 
void toTriStrip (SkScalar width, SkScalar height, SkPoint strip[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 ]

Member Function Documentation

◆ Make()

static SkRSXform SkRSXform::Make ( SkScalar  scos,
SkScalar  ssin,
SkScalar  tx,
SkScalar  ty 
)
inlinestatic

◆ MakeFromRadians()

static SkRSXform SkRSXform::MakeFromRadians ( SkScalar  scale,
SkScalar  radians,
SkScalar  tx,
SkScalar  ty,
SkScalar  ax,
SkScalar  ay 
)
inlinestatic

◆ rectStaysRect()

bool SkRSXform::rectStaysRect ( ) const
inline

◆ set()

void SkRSXform::set ( SkScalar  scos,
SkScalar  ssin,
SkScalar  tx,
SkScalar  ty 
)
inline

◆ setIdentity()

void SkRSXform::setIdentity ( )
inline

◆ toQuad() [1/2]

void SkRSXform::toQuad ( const SkSize size,
SkPoint  quad[4] 
) const
inline

◆ toQuad() [2/2]

void SkRSXform::toQuad ( SkScalar  width,
SkScalar  height,
SkPoint  quad[4] 
) const

◆ toTriStrip()

void SkRSXform::toTriStrip ( SkScalar  width,
SkScalar  height,
SkPoint  strip[4] 
) const

Member Data Documentation

◆ fSCos

SkScalar SkRSXform::fSCos

◆ fSSin

SkScalar SkRSXform::fSSin

◆ fTx

SkScalar SkRSXform::fTx

◆ fTy

SkScalar SkRSXform::fTy

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