Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RBComb simulation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
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
RBComb simulation
Commits
ab381380
Commit
ab381380
authored
5 years ago
by
Pascal Engeler
Browse files
Options
Downloads
Patches
Plain Diff
Started writing README.md
parent
ebacaba0
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
README.md
+35
-0
35 additions, 0 deletions
README.md
with
35 additions
and
0 deletions
README.md
0 → 100644
+
35
−
0
View file @
ab381380
# RBComb Simulation Framework
This project aims at developing a framework that can be used to simulate any project
that is to be undertaken on the RBComb platform. It is designed in modular fashion,
such that it is flexible enough to adapt easily to any given situation.
## Structure
The code is structured in an object oriented approach. The classes that likely will
not need to be adapted for a new situation are found in the
`lib`
folder. They
consist of the following:
### Type `Vec2` (`vec2.hpp`), 2-vector utility class
1.
Template parameters:
-
`value_t`
: type of vector entries
2.
Members:
-
Access:
-
`value_t x()`
: returns x entry
-
`value_t y()`
: returns y entry
-
`Vec2 normalized()`
: returns normalized version of vector
-
`value_t r()`
: returns length
-
`value_t phi()`
: returns angle (
`std::atan2`
version of it)
-
Member functions:
-
`value_t r_wrt(Vec2)`
: returns length with origin at argument
-
`value_t phi_wrt(Vec2)`
: returns angle with origin at argument
-
`value_t norm()`
: returns norm
-
`value_t norm_sq()`
: returns square of norm
-
Modifiers:
-
`Vec2 normalize()`
: normalize the vector
-
`Vec2 rotate(Vec2, value_t)`
: rotate the vector
-
Supported Operators: All of these work as one would expect
-
`*`
with
`Vec2`
(inner product) and
`value_t`
-
`/`
with
`value_t`
-
`+, -`
with
`Vec2`
-
All versions of
`op=`
of the above
-
`[]`
with
`std::size_t`
-
`<<`
with
`std::ostream`
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