Skip to content

Commit b796879

Browse files
author
indierusty
committed
set POSITION_ACCURACY and PERIMETER_ACCURACY to smaller value to get better approximate euclidean position on a path
1 parent a0e91b1 commit b796879

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node-graph/gcore/src/vector/algorithms/bezpath_algorithms.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// Accuracy to find the position on [kurbo::Bezpath].
2-
const POSITION_ACCURACY: f64 = 1e-3;
2+
const POSITION_ACCURACY: f64 = 1e-5;
33
/// Accuracy to find the length of the [kurbo::PathSeg].
4-
pub const PERIMETER_ACCURACY: f64 = 1e-3;
4+
pub const PERIMETER_ACCURACY: f64 = 1e-5;
55

66
use kurbo::{BezPath, ParamCurve, ParamCurveDeriv, PathSeg, Point, Shape};
77

0 commit comments

Comments
 (0)