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
6c4f71d8
Commit
6c4f71d8
authored
2 years ago
by
Pascal Engeler
Browse files
Options
Downloads
Patches
Plain Diff
added array functions and scale function
parent
792e9356
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/utility.hpp
+8
-1
8 additions, 1 deletion
include/utility.hpp
with
8 additions
and
1 deletion
include/utility.hpp
+
8
−
1
View file @
6c4f71d8
...
...
@@ -4,6 +4,8 @@
#include
<exception>
#include
<limits>
#include
<iostream>
#include
<glm/glm.hpp>
#include
<glm/gtc/type_ptr.hpp>
#define BAD_Z_VALUE -999999.
...
...
@@ -22,8 +24,13 @@ std::array<double, 3> extract_triplet(const std::string& str_in, size_t& start);
/*i: column, j: row. unsigned for opengl compatibility*/
unsigned
ij2index
(
unsigned
i
,
unsigned
j
,
unsigned
Ny
);
std
::
array
<
float
,
3
>
operator
+=
(
std
::
array
<
float
,
3
>&
,
const
std
::
array
<
float
,
3
>&
);
std
::
array
<
float
,
3
>
cross
(
const
std
::
array
<
float
,
3
>&
,
const
std
::
array
<
float
,
3
>&
);
std
::
array
<
float
,
3
>
operator
/=
(
std
::
array
<
float
,
3
>&
,
const
float
);
glm
::
mat4
scale_z
(
float
z0
,
float
factor
);
...
...
@@ -56,4 +63,4 @@ double max(const T& container, size_t offset, size_t stride) {
}
}
return
max_val
;
}
\ 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