sgCMatrix::sgCMatrix()

 

     

Description:

Constructor. Creates a 4x4 unit matrix.

 

Arguments:

No arguments.

 

Returned value:

No value.

 

Example:

 

sgCMatrix*     matr = new sgCMatrix;

 


 

sgCMatrix::sgCMatrix(const double* matr_data)

 

Description:

Constructor. Creates a matrix by the array of sixteen numbers of the double type.

 

Arguments:

matr_data - pointer to the beginning of the array of sixteen numbers of the double type. If the argument is NULL, a unit matrix is created (which is equal to the default constructor).

 

 

Returned value:

No values.

 

Example:

 

double* matr_data = new double[16];

memset(matr_data, 0, sizeof(double*16));

sgCMatrix*     matr = new sgCMatrix(matr_data);

delete[]  matr_data;

 


sgCMatrix::sgCMatrix(sgCMatrix& matr_B)

 

Description:Description:

Constructor. Creates a matrix by the existing object of the sgCMatrix class.

 

 

Arguments:

matr_B - sgCMatrix class object. The created matrix is a copy of mart_B.

 

Returned value:

No values.

 

Example:

 

sgCMatrix    matr1;

sgCMatrix    matr2(matr1);

 


 

sgCMatrix::~sgCMatrix()

 

Description:

Destructor.

 

Arguments:

No arguments.

 

Returned value:

No values.