mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-03 11:48:12 +08:00
Bezier-rs: Add lookup table function for subpath and make it support euclidean parameterization (#1082)
* Add euclidean option for lut * Add lut for subpath * Fix rust formatting * Fixed breakages caused by UI updates * Code cleanup * Make ProjectionOptions optional --------- Co-authored-by: Rob Nadal <robnadal44@gmail.com> Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
committed by
Keavon Chambers
co-authored by
Rob Nadal
Keavon Chambers
parent
d0ac86b713
commit
3733804d18
@@ -19,6 +19,12 @@ pub enum TValue {
|
||||
EuclideanWithinError { t: f64, error: f64 },
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, PartialEq)]
|
||||
pub enum TValueType {
|
||||
Parametric,
|
||||
Euclidean,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, PartialEq)]
|
||||
pub enum SubpathTValue {
|
||||
Parametric { segment_index: usize, t: f64 },
|
||||
|
||||
Reference in New Issue
Block a user