From edfc44cd7f3e5380ffd68a2f1ba7f2e5bf664d9c Mon Sep 17 00:00:00 2001
From: namark <namark@disroot.org>
Date: Fri, 30 Aug 2019 00:09:02 +0400
Subject: [PATCH] Small improvements in code.

---
 no_trig_rotation.cpp | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/no_trig_rotation.cpp b/no_trig_rotation.cpp
index f0aa1df..413b833 100644
--- a/no_trig_rotation.cpp
+++ b/no_trig_rotation.cpp
@@ -169,7 +169,7 @@ void start(Program& program)
 
 		constexpr auto half = float2::one(0.5);
 
-		// the the outline of expected path (circle)
+		// the outline of expected path (circle)
 		frame.begin_sketch()
 			.ellipse(anchored_rect2f{
 				float2::one(300), frame.size/2, half
@@ -219,10 +219,8 @@ void start(Program& program)
 		// left and right set the angle using the elaborate polygon-lerp scheme
 		auto move_regular_angle = [&](float direction)
 		{
-			using geom::vector;
-			using support::wrap;
 			regular_angle += direction * delta.count() * 0.1f;
-			regular_angle = wrap(regular_angle,1.f);
+			regular_angle = support::wrap(regular_angle,1.f);
 			angle = protractor<>::tau(regular_angle);
 		};
 		if(pressed(scancode::right))
-- 
GitLab