mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
* fix naming * refactor sample_points node/function. * avoid recalculating segments length to find point on bezpath. * cleanup * rename few variables * fix transformation and use precomputed segment lengths * write comments * set POSITION_ACCURACY and PERIMETER_ACCURACY to smaller value to get better approximate euclidean position on a path * fix segment index when t value is 1.0 * Improve comments * move sampling points code into a separate function * it works! finding the segment index is linear now! * small fix and improve variable names & comment * Naming * evaluate segment at t as euclidean distance. fix. * improve comment & variable name --------- Co-authored-by: indierusty <priyaayadav@gmail.com> Co-authored-by: Keavon Chambers <keavon@keavon.com>