From 35e2980c57529859b0d57bbb38aa7f6000e612ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wies=C5=82aw=20=C5=A0olt=C3=A9s?= Date: Wed, 5 Aug 2015 17:56:07 +0200 Subject: [PATCH] Formatted code --- Wpf/Path/PathHitTestBezierContext.cs | 32 ++++++++++++++-------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/Wpf/Path/PathHitTestBezierContext.cs b/Wpf/Path/PathHitTestBezierContext.cs index ce786ff..a8e29dc 100644 --- a/Wpf/Path/PathHitTestBezierContext.cs +++ b/Wpf/Path/PathHitTestBezierContext.cs @@ -163,6 +163,22 @@ namespace SpiroNet.Wpf return minerr; } + public double Report(out int knotIndex) + { + double r_min = _state.r_min; + knotIndex = _state.knot_idx_min; + return r_min; + } + + public PathHitTestBezierContext(double x, double y) + { + _state = new HitTestState(); + _state.x = x; + _state.y = y; + _state.knot_idx_min = -1; + _state.r_min = 1e12; + } + public void MoveTo(double x, double y, bool isOpen) { _state.x0 = x; @@ -240,21 +256,5 @@ namespace SpiroNet.Wpf { _state.knot_idx = knotIndex; } - - public PathHitTestBezierContext(double x, double y) - { - _state = new HitTestState(); - _state.x = x; - _state.y = y; - _state.knot_idx_min = -1; - _state.r_min = 1e12; - } - - public double Report(out int p_knot_idx) - { - double r_min = _state.r_min; - p_knot_idx = _state.knot_idx_min; - return r_min; - } } }