Castle Game EngineIntroduction Units Class Hierarchy Classes, Interfaces, Objects and Records Types Variables Constants Functions and Procedures Identifiers
|
Record TGenericMatrix2
Unit
CastleVectorsInternalSingle
Declaration
type TGenericMatrix2 = record
Description
2x2 matrix of floating-point values.
See also
- TGenericMatrix3
- 3x3 matrix of floating-point values.
Overview
Internal Types
Fields
Methods
Properties
Description
Internal Types
Fields
Methods
class operator * (const M1, M2: TGenericMatrix2): TGenericMatrix2; |
Matrix * matrix makes a normal matrix algebraic multiplication (not component-wise multiplication). Note that this is different from vectors, where vector * vector makes a component-wise multiplication.
|
function ToString(const LineIndent: string = ''): string; |
|
function ToRawString(const LineIndent: string = ''): string; |
Convert to string using the most precise (not always easily readable by humans) float format. This may use the exponential (scientific) notation to represent the floating-point value, if needed.
This is suitable for storing the value in a file, with a best precision possible.
|
function Inverse(ADeterminant: TGenericScalar): TGenericMatrix2; |
Inverse the matrix.
This does division by ADeterminant internally, so will raise exception from this float division if the matrix is not reversible. Check Math.IsZero(ADeterminant) first to avoid this, or use TryInverse.
|
function TryInverse(out MInverse: TGenericMatrix2): boolean; |
Inverse the matrix, or return False if the matrix is not invertible.
|
class function Equals(const M1, M2: TGenericMatrix2): boolean; overload; static; |
Compare two vectors, with epsilon to tolerate slightly different floats.
|
class function PerfectlyEquals(const M1, M2: TGenericMatrix2): boolean; static; |
Compare two vectors using exact comparison (like the "=" operator to compare floats).
|
Properties
Generated by PasDoc 0.15.0.
|