Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nt1100 analyser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Pascal Engeler
nt1100 analyser
Commits
b00310c1
Commit
b00310c1
authored
2 years ago
by
Pascal Engeler
Browse files
Options
Downloads
Patches
Plain Diff
Fixed the leveler
parent
4d189da8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/leveler.hpp
+8
-5
8 additions, 5 deletions
include/leveler.hpp
with
8 additions
and
5 deletions
include/leveler.hpp
+
8
−
5
View file @
b00310c1
#pragma once
#pragma once
#define GLM_FORCE_RADIANS
#include
<glm/glm.hpp>
#include
<glm/glm.hpp>
#include
<glm/gtc/type_ptr.hpp>
#include
<glm/gtc/type_ptr.hpp>
#include
<glm/gtx/transform.hpp>
class
Leveler
{
class
Leveler
{
public:
public:
static
void
update_leveler
();
static
void
update_leveler
();
static
void
place
(
glm
::
vec
2
);
static
void
place
(
glm
::
vec
3
,
glm
::
mat4
);
static
bool
fetchingP1
;
static
bool
fetchingP1
;
static
bool
fetchingP2
;
static
bool
fetchingP2
;
...
@@ -13,11 +15,12 @@ public:
...
@@ -13,11 +15,12 @@ public:
static
bool
transformationValid
;
static
bool
transformationValid
;
static
glm
::
mat4
transformation
;
//only rotations and translations along z in here
static
glm
::
mat4
transformation
;
//total transformation, rotation and z translation
static
glm
::
mat4
rotation
;
//rotation part of transformation, around the origin, apply to _data to get new zrange
private:
private:
static
glm
::
vec
2
_p1
;
static
glm
::
vec
3
_p1
;
static
glm
::
vec
2
_p2
;
static
glm
::
vec
3
_p2
;
static
glm
::
vec
2
_p3
;
static
glm
::
vec
3
_p3
;
};
};
\ No newline at end of file
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