PDF SDK Documentation

Comprehensive Guide for Developers: Features, Integration, and API Reference

Loading...
Searching...
No Matches
PDF::Matrix Struct Reference

#include <pdfsdk/cxx/math.h>

Inheritance diagram for PDF::Matrix:
PDMatrix

Public Member Functions

 Matrix (float a_, float b_, float c_, float d_, float e_, float f_)
 
 Matrix (const PDMatrix &that)
 
bool Equals (const Matrix &that) const
 
bool operator== (const Matrix &that) const
 
bool operator!= (const Matrix &that) const
 
bool IsIdentity () const
 
Matrix operator* (const Matrix &that) const
 
Matrixoperator*= (const Matrix &that)
 
PointF MapPoint (const PointF &point) const
 
SizeF MapSize (const SizeF &size) const
 
RectF MapRect (const RectF &rect) const
 
Quad MapQuad (const Quad &quad) const
 
float GetScalingX () const
 
float GetScalingY () const
 
bool HasRotation () const
 
float GetRotation () const
 
float GetRotationDegrees () const
 
double Determinant () const
 
void Scale (float value)
 
void Scale (float x, float y)
 
void Scale (const SizeF &scaling)
 
void Scale (float value, const PointF &origin)
 
void Scale (float x, float y, const PointF &origin)
 
void Scale (const SizeF &scaling, const PointF &origin)
 
void Rotate (double radians)
 
void Rotate (double radians, const PointF &origin)
 
void RotateDegree (double degree)
 
void RotateDegree (double degree, const PointF &origin)
 
void ReflectX (float width=0.f)
 
void ReflectY (float height=0.f)
 
bool IsReflected () const
 
void Translate (float x, float y)
 
void Translate (const PointF &v)
 
bool IsInvertible () const
 
std::optional< MatrixInverse () const
 
Matrix InverseOrIdentity () const
 
bool DoesPreserveRects () const
 

Static Public Member Functions

static Matrix Concat (const Matrix &lhs, const Matrix &rhs)
 
static Matrix Scaling (float value)
 
static Matrix Scaling (float x, float y)
 
static Matrix Scaling (const SizeF &scaling)
 
static Matrix Scaling (float value, const PointF &origin)
 
static Matrix Scaling (float x, float y, const PointF &origin)
 
static Matrix Scaling (const SizeF &scaling, const PointF &origin)
 
static Matrix Rotation (double radians)
 
static Matrix Rotation (double radians, const PointF &origin)
 
static Matrix RotationDegree (double degree)
 
static Matrix RotationDegree (double degree, const PointF &origin)
 
static Matrix ReflectionX (float width=0.f)
 
static Matrix ReflectionY (float height=0.f)
 
static Matrix Translation (float x, float y)
 
static Matrix Translation (const PointF &v)
 
static Matrix RectToRect (const RectF &source, const RectF &dest)
 
static Matrix RectToRectProportional (const RectF &source, const RectF &dest)
 

Additional Inherited Members

- Public Attributes inherited from PDMatrix
float a
 
float b
 
float c
 
float d
 
float e
 
float f
 

Detailed Description

See also
PDMatrix

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