mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-04 23:28:12 +08:00
Bezier-rs: Add self_intersection to subpath (#1035)
* add self-intersection to subpath, rebased old work onto master * fix interactive website after rebase * fix rustdoc iframe placement * remove double comment * address comments * revert evaluate change * address comment + fix assert statement bug * update function comments
This commit is contained in:
committed by
Keavon Chambers
parent
4797aed05b
commit
f2d35f50de
@@ -37,7 +37,7 @@ impl Subpath {
|
||||
match t {
|
||||
SubpathTValue::Parametric { segment_index, t } => {
|
||||
assert!((0.0..=1.).contains(&t));
|
||||
assert!((0..self.len_segments() - 1).contains(&segment_index));
|
||||
assert!((0..self.len_segments()).contains(&segment_index));
|
||||
(segment_index, t)
|
||||
}
|
||||
SubpathTValue::GlobalParametric(global_t) => {
|
||||
|
||||
Reference in New Issue
Block a user