CartoType API
Public Member Functions
CartoType::TTransformFP Class Reference

#include <cartotype_transform.h>

List of all members.

Public Member Functions

CT_IMPORT TTransformFP (double aA, double aB, double aC, double aD, double aTx, double aTy)
CT_IMPORT TTransformFP (const TTransform &aTransform)
void Transform (double &aX, double &aY) const
CT_IMPORT void Transform (TPoint &aPoint) const
CT_IMPORT void TransformPointIn64ths (TPoint &aPoint) const
CT_IMPORT void Transform (TRect &aRect) const
CT_IMPORT void Concat (const TTransformFP &aTransform)
CT_IMPORT void Scale (double aXScale, double aYScale)
CT_IMPORT TResult Invert ()
void Translate (double aX, double aY)
CT_IMPORT void Rotate (double aAngle)
void Rotate (double aX, double aY)
double A () const
double B () const
double C () const
double D () const
double Tx () const
double Ty () const
CT_IMPORT bool operator== (const TTransformFP &aTransform) const
bool operator!= (const TTransformFP &aTransform) const
CT_IMPORT int32 Type () const

Detailed Description

A floating point affine 2D transformation.


Member Function Documentation

CT_EXPORT TResult TTransformFP::Invert ( )

Invert a transform if it is invertible. If not, convert the transform to the identity transform and return KErrorNoInverse.

CT_EXPORT void TTransformFP::Scale ( double  aXScale,
double  aYScale 
)

Scale a transform by aXScale and aYScale. Do nothing if either XScale or YScale is zero.

CT_EXPORT void TTransformFP::Transform ( TRect aRect) const

Transform a grid-aligned rectangle. The result is the grid-aligned bounds of the transformed rectangle, so the operation cannot be reversed by the inverse transform.


The documentation for this class was generated from the following files: