PdfTransformDeterminant Method |
Returns the determinant of this transform
Namespace:
Atalasoft.PdfDoc.Geometry
Assembly:
Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public double Determinant()
Public Function Determinant As Double
Return Value
Type:
DoubleThe determinant of the transformation matrix
Remarks
A
PdfTransform can be treated as a 3x3 matrix:
| a b c |
| d e f |
| g h i |
where c, f, and i are 0, 0, and 1, respectively. Using this definition, the determinant of a 3x3 matrix is
defined as (a * e * i) + (b * f * g) + (c * d * h) - (a * f * h) - (b * d * i) - (c * e * g). Using the
constants for c, f, and i, this can be reduced to (a * e) - (b * d).
While client code may not have direct use for the determinant of the matrix, it is used internally to
determine if a matrix is invertible and to calculate the inverse.
See Also