You are here: Symbol Reference > MtxVec Namespace > Classes > TMtx Class > TMtx.Create Constructor
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtx.Create Constructor

Create a new TMtx object.

Pascal
constructor Create; override; overload;

Creates a new TMtx object. You should use the 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.

var A: TMtx; begin A := TMtx.Create; try A.Size(20,20,false); finally A.Free; // takes about 500 CPU cycles end; CreateIt(A); try A.Size(20,20,false); finally FreeIt(A); // takes only about 40 CPU cycles end; end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!