Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Rasterisation Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sr1g19
Rasterisation Project
Commits
8e77b9f6
Commit
8e77b9f6
authored
4 years ago
by
sr1g19
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
83e86f7e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/matrix/2x2matrix.h
+24
-0
24 additions, 0 deletions
src/matrix/2x2matrix.h
with
24 additions
and
0 deletions
src/matrix/2x2matrix.h
0 → 100644
+
24
−
0
View file @
8e77b9f6
#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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment