git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@277 92aac97c-a6ce-11dd-a772-7fcde58d38e6
This commit is contained in:
parent
a9a518f57a
commit
2d8eebfb1f
|
@ -24,6 +24,12 @@
|
||||||
// Namespaces
|
// Namespaces
|
||||||
using namespace reactphysics3d;
|
using namespace reactphysics3d;
|
||||||
|
|
||||||
|
// Constructor without argument
|
||||||
|
Matrix::Matrix()
|
||||||
|
:nbRow(0), nbColumn(0) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// Constructor of the class Matrix
|
// Constructor of the class Matrix
|
||||||
Matrix::Matrix(int nbRow, int nbColumn) throw(std::invalid_argument)
|
Matrix::Matrix(int nbRow, int nbColumn) throw(std::invalid_argument)
|
||||||
:nbRow(nbRow),nbColumn(nbColumn) {
|
:nbRow(nbRow),nbColumn(nbColumn) {
|
||||||
|
|
|
@ -40,6 +40,7 @@ class Matrix {
|
||||||
double** array; // Dynamic array that contains the values of the matrix
|
double** array; // Dynamic array that contains the values of the matrix
|
||||||
|
|
||||||
public :
|
public :
|
||||||
|
Matrix(); // Constructor without argument
|
||||||
Matrix(int nbRow, int nbColum) throw(std::invalid_argument); // Constructor of the class Matrix
|
Matrix(int nbRow, int nbColum) throw(std::invalid_argument); // Constructor of the class Matrix
|
||||||
Matrix(const Matrix& matrix); // Copy constructor of the class Matrix
|
Matrix(const Matrix& matrix); // Copy constructor of the class Matrix
|
||||||
virtual ~Matrix(); // Destructor of the class Matrix
|
virtual ~Matrix(); // Destructor of the class Matrix
|
||||||
|
|
|
@ -23,6 +23,12 @@
|
||||||
// Namespaces
|
// Namespaces
|
||||||
using namespace reactphysics3d;
|
using namespace reactphysics3d;
|
||||||
|
|
||||||
|
// Constructor without argument
|
||||||
|
Vector::Vector()
|
||||||
|
:nbComponent(0) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// Constructor of the class Vector
|
// Constructor of the class Vector
|
||||||
Vector::Vector(int n) throw(std::invalid_argument) {
|
Vector::Vector(int n) throw(std::invalid_argument) {
|
||||||
// Check the argument
|
// Check the argument
|
||||||
|
|
|
@ -39,6 +39,7 @@ class Vector {
|
||||||
int nbComponent; // number of components in the vector
|
int nbComponent; // number of components in the vector
|
||||||
|
|
||||||
public :
|
public :
|
||||||
|
Vector(); // Constructor without argument
|
||||||
Vector(int n) throw(std::invalid_argument); // Constructor of the class Vector
|
Vector(int n) throw(std::invalid_argument); // Constructor of the class Vector
|
||||||
Vector(const Vector& vector); // Copy-constructor of the class Vector
|
Vector(const Vector& vector); // Copy-constructor of the class Vector
|
||||||
virtual ~Vector(); // Destructor of the class Vector
|
virtual ~Vector(); // Destructor of the class Vector
|
||||||
|
|
Loading…
Reference in New Issue
Block a user