Struct PdfMatrix
Immutable 2D affine transformation matrix using PDF conventions: [ A B 0 ] [ C D 0 ] [ E F 1 ] where (x', y') = (Ax + Cy + E, Bx + Dy + F).
public readonly record struct PdfMatrix : IEquatable<PdfMatrix>
- Implements
- Inherited Members
Constructors
PdfMatrix(double, double, double, double, double, double)
Immutable 2D affine transformation matrix using PDF conventions: [ A B 0 ] [ C D 0 ] [ E F 1 ] where (x', y') = (Ax + Cy + E, Bx + Dy + F).
public PdfMatrix(double A, double B, double C, double D, double E, double F)
Parameters
Fields
Identity
public static readonly PdfMatrix Identity
Field Value
Properties
A
public double A { get; init; }
Property Value
B
public double B { get; init; }
Property Value
C
public double C { get; init; }
Property Value
D
public double D { get; init; }
Property Value
Determinant
public double Determinant { get; }
Property Value
E
public double E { get; init; }
Property Value
F
public double F { get; init; }
Property Value
IsIdentity
public bool IsIdentity { get; }
Property Value
IsInvertible
public bool IsInvertible { get; }
Property Value
Methods
CreateRotation(double)
public static PdfMatrix CreateRotation(double angleRadians)
Parameters
angleRadiansdouble
Returns
CreateScale(double, double)
public static PdfMatrix CreateScale(double sx, double sy)
Parameters
Returns
CreateTranslation(double, double)
public static PdfMatrix CreateTranslation(double dx, double dy)
Parameters
Returns
Multiply(in PdfMatrix)
Multiplies this matrix by another: result = this * other. In PDF concatenation cm: CTM_new = M * CTM_old, so matrix multiplication matches standard row-vector convention.
public PdfMatrix Multiply(in PdfMatrix m)
Parameters
Returns
Transform(PdfPoint)
public PdfPoint Transform(PdfPoint p)
Parameters
pPdfPoint
Returns
Transform(PdfRect)
public PdfRect Transform(PdfRect rect)
Parameters
rectPdfRect
Returns
Transform(double, double)
public PdfPoint Transform(double x, double y)
Parameters
Returns
TryInvert(out PdfMatrix)
public bool TryInvert(out PdfMatrix inverse)
Parameters
inversePdfMatrix
Returns
Operators
operator *(in PdfMatrix, in PdfMatrix)
public static PdfMatrix operator *(in PdfMatrix left, in PdfMatrix right)