mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-07 14:28:12 +08:00
New node: Bevel (#2067)
* Bevel node * Fix clippy lints * Prevent negative values * Rename flipped() -> reversed() --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
Keavon Chambers
parent
63d44f22e3
commit
dae6b2f239
@@ -605,6 +605,16 @@ impl Bezier {
|
||||
|
||||
(arcs, low)
|
||||
}
|
||||
|
||||
/// Reverses the direction of the bézier.
|
||||
#[must_use]
|
||||
pub fn reversed(self) -> Self {
|
||||
Self {
|
||||
start: self.end,
|
||||
end: self.start,
|
||||
handles: self.handles.reversed(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
Reference in New Issue
Block a user