summaryrefslogtreecommitdiff
path: root/modules/codec/c++/math.hpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-03-02 20:00:06 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-03-02 20:00:06 +0100
commit94e9b6dac547e956a4514565976d1ea3498b0ec5 (patch)
tree52fa1e42479c37ba72c6ffa6361ebf0d547e8a89 /modules/codec/c++/math.hpp
parente9624b172bc5946a25847dc71f16f1a684892708 (diff)
downloadforstio-forstio-94e9b6dac547e956a4514565976d1ea3498b0ec5.tar.gz
Adding 2D rotation with minor testing for compilation
Diffstat (limited to 'modules/codec/c++/math.hpp')
-rw-r--r--modules/codec/c++/math.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/codec/c++/math.hpp b/modules/codec/c++/math.hpp
index 34c64c7..d110b64 100644
--- a/modules/codec/c++/math.hpp
+++ b/modules/codec/c++/math.hpp
@@ -133,8 +133,8 @@ data<schema::Vector<T,2u>,Encoding> rotate(
const data<schema::Scalar<T>, Encoding> rot
){
data<schema::Vector<T,2u>, Encoding> rot_vec;
- rot_vec.at({{0u}}) = vec.at({{0u}}) * cos(rot);
- rot_vec.at({{1u}}) = vec.at({{1u}}) * sin(rot);
+ rot_vec.at({{0u}}) = vec.at({{0u}}) * cos(rot).at({});
+ rot_vec.at({{1u}}) = vec.at({{1u}}) * sin(rot).at({});
return rot_vec;
}