You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtx Class > TMtx Constructor > TMtx.TMtx Constructor ()
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtx.TMtx Constructor ()

Create a new TMtx object.

Syntax
C#
Visual Basic
public TMtx(SerializationInfo Info, StreamingContext Context); public TMtx();

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;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!