From a0167e07d7587b79ba0be8d5226c4e8c30cc7dd9 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 22 Jan 2015 14:55:13 +1100 Subject: [PATCH] bezier: correct ordering of order 2 eval --- bezier.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bezier.cpp b/bezier.cpp index 53dc04a7..1669dc2f 100644 --- a/bezier.cpp +++ b/bezier.cpp @@ -42,12 +42,12 @@ namespace util { CHECK_GE (t, 0); CHECK_LE (t, 1); - auto v0 = t * m_points[0]; - auto v1 = (1 - t) * m_points[1]; + auto v0 = (1 - t) * m_points[0]; + auto v1 = t * m_points[1]; return { v0.x + v1.x, - v0.y + v0.y + v0.y + v1.y }; } }