From 801fc926a08497a1ce5d45f9e73d1b08c1ad1342 Mon Sep 17 00:00:00 2001 From: DD Date: Fri, 22 Dec 2017 17:30:05 -0500 Subject: [PATCH] Change .1 to .5 since we figured out that it doesnt matter and .5 seems less arbitrary --- src/containers/mode-tools.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/containers/mode-tools.jsx b/src/containers/mode-tools.jsx index 8450c258..7b06fd71 100644 --- a/src/containers/mode-tools.jsx +++ b/src/containers/mode-tools.jsx @@ -85,7 +85,7 @@ class ModeTools extends React.Component { // Direction is average of normal at the point and direction to prev point, using the // normal that points out from the convex side // Lenth is curve length * HANDLE_RATIO - const convexity = prev.getCurve().getCurvatureAtTime(.1) < 0 ? -1 : 1; + const convexity = prev.getCurve().getCurvatureAtTime(.5) < 0 ? -1 : 1; point.handleIn = (prev.getCurve().getNormalAtTime(1) .multiply(convexity) .add(prev.point.subtract(point.point).normalize())) @@ -96,7 +96,7 @@ class ModeTools extends React.Component { // Direction is average of normal at the point and direction to prev point, using the // normal that points out from the convex side // Lenth is curve length * HANDLE_RATIO - const convexity = point.getCurve().getCurvatureAtTime(.1) < 0 ? -1 : 1; + const convexity = point.getCurve().getCurvatureAtTime(.5) < 0 ? -1 : 1; point.handleOut = (point.getCurve().getNormalAtTime(0) .multiply(convexity) .add(next.point.subtract(point.point).normalize()))