Record TR2MatrixHelper

Unit

Declaration

type TR2MatrixHelper = record helper for TR2Matrix

Description

Record helper for TR2Matrix providing additional operations specific to 2×2 real matrices.

Overview

Methods

Public function Determinant: double;
Public function Reciprocal(const ADeterminant: double): TR2Matrix;
Public function ToString: string;
Public function ToString(APrecision, ADigits: integer): string;
Public function Transpose: TR2Matrix;

Description

Methods

Public function Determinant: double;

Returns the determinant of the 2×2 matrix: det(A) = a₁₁·a₂₂ - a₁₂·a₂₁.

Public function Reciprocal(const ADeterminant: double): TR2Matrix;

Returns the inverse of the matrix given its precomputed determinant.

Parameters
ADeterminant
The determinant of the matrix, computed via Determinant.
Public function ToString: string;

Converts the matrix to its default string representation.

Public function ToString(APrecision, ADigits: integer): string;

Converts the matrix to a formatted string with controlled precision.

Parameters
APrecision
Number of significant digits.
ADigits
Minimum number of digits in the output.
Public function Transpose: TR2Matrix;

Returns the transpose of the 2×2 matrix.


Generated by PasDoc 1.0.4.