TMtx.TMtx Constructor

TMtx

Create a new TMtx object.

Result: stored in self (calling object)

Remarks:

Creates a new TMtx object. You should use the Dew.Math.Units.MtxVec.CreateIt where possible and avoid using the Create constructor, but only in cases when the object is created and destroy within the same routine.

Examples
TMtx A;
A = TMtx.Create;
try
    {
        A.Size(20,20,false);
    }
finally
    {
        A.Free;  // takes about 500 CPU cycles
    }

    MtxVec.CreateIt(out A);
    try
        {
            A.Size(20,20,false);
        }
    finally
        {
            FreeIt(A); // takes only about 40 CPU cycles
        }