reactphysics3d/sources/reactphysics3d/mathematics/main.cpp
chappuis.daniel e70ef78a8e Commit
git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@15 92aac97c-a6ce-11dd-a772-7fcde58d38e6
2009-02-02 13:53:56 +00:00

26 lines
477 B
C++
Executable File

#include "mathematics.h"
#include <iostream>
#include <stdexcept>
using namespace std;
int main(int argc, char *argv[])
{
Matrix matrix(3,3);
matrix.setValue(0, 0, 4);
matrix.setValue(0, 1, 64);
matrix.setValue(0, 2, 6);
matrix.setValue(1, 0, 73);
matrix.setValue(1, 1, -64);
matrix.setValue(1, 2, 5);
matrix.setValue(2, 0, 3);
matrix.setValue(2, 1, 976);
matrix.setValue(2, 2, 70);
matrix.getInverse().display();
}