TMtx::TMtx Constructor

Overload List

#SignatureDescription
1TMtx();Create a new TMtx object.
2TMtx(const DewArray<unsigned char> &Src);

Overload 1: TMtx();

Create a new TMtx object.

Remarks:

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.

Examples
#include "MtxVec.h"
#include "Units.MtxVec.h"

using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::MtxVec;

void Example()
{
    TMtx* A;

    A = new TMtx();
    A->Size(20, 20, false);
    A->Free(); // takes about 500 CPU cycles

    CreateIt(A);
    A->Size(20, 20, false);
    FreeIt(A); // takes only about 40 CPU cycles
}
Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler

Overload 2: TMtx(const DewArray<unsigned char> &Src);

#NameTypeDescription
1Srcconst DewArray<unsigned char> &
Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler