From 94e9b6dac547e956a4514565976d1ea3498b0ec5 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 2 Mar 2026 20:00:06 +0100 Subject: Adding 2D rotation with minor testing for compilation --- modules/codec/tests/math.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'modules/codec/tests') diff --git a/modules/codec/tests/math.cpp b/modules/codec/tests/math.cpp index 6817df1..63b6d2b 100644 --- a/modules/codec/tests/math.cpp +++ b/modules/codec/tests/math.cpp @@ -64,6 +64,20 @@ SAW_TEST("Math/Tensor"){ } } +SAW_TEST("Math/Rotate"){ + using namespace saw; + + data> a; + { + a.at({{0u}}) = 2.0; + a.at({{1u}}) = 1.0; + } + + data> b; + b.at({}) = 1.4; + auto c = math::rotate(a,b); +} + SAW_TEST("Math/Dot"){ using namespace saw; -- cgit v1.2.3