Skip to content
Snippets Groups Projects
Commit 8e77b9f6 authored by sr1g19's avatar sr1g19
Browse files

Upload New File

parent 83e86f7e
Branches
No related tags found
No related merge requests found
#ifndef _2X2MATRIX_H
#define _2X2MATRIX_H
#define MATRIXCACHE2X2 10
#include <stdint.h>
typedef struct{
float a11,a12,
a21,a22;
}_2x2Matrix;
typedef struct{
float a11,
a21;
}_2x1Matrix;
_2x2Matrix add_2x2(_2x2Matrix m1, _2x2Matrix m2);
_2x2Matrix minus_2x2(_2x2Matrix m1, _2x2Matrix m2);
_2x2Matrix multiply_2x2(_2x2Matrix m1, _2x2Matrix m2);
_2x2Matrix scale_2x2(_2x2Matrix m1, float scale);
float det_2x2(_2x2Matrix m);
_2x2Matrix inverse_2x2(_2x2Matrix m);
_2x1Matrix transpose_2x2(_2x2Matrix m1, _2x1Matrix m2);
unsigned char equals_2x2(_2x2Matrix m1, _2x2Matrix m2);
#endif //_2X2MATRIX_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment