mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-01 05:18:12 +08:00
Fix various typos (#745)
Found via `codespell -q 3 -L complies,crate,doubleclick,ist,ser,vew`
This commit is contained in:
@@ -610,7 +610,7 @@ impl Bezier {
|
||||
.unwrap()
|
||||
}
|
||||
|
||||
/// Returns a Bezier curve that results from applying the tranformation function to each point in the Bezier.
|
||||
/// Returns a Bezier curve that results from applying the transformation function to each point in the Bezier.
|
||||
pub fn apply_transformation(&self, transformation_function: &dyn Fn(DVec2) -> DVec2) -> Bezier {
|
||||
let transformed_start = transformation_function(self.start);
|
||||
let transformed_end = transformation_function(self.end);
|
||||
@@ -735,7 +735,7 @@ impl Bezier {
|
||||
|
||||
return list_intersection_t
|
||||
.into_iter()
|
||||
// Accept the t value if it is approximately in [0, 1] and if the coresponding coordinates are within the range of the linear line
|
||||
// Accept the t value if it is approximately in [0, 1] and if the corresponding coordinates are within the range of the linear line
|
||||
.filter(|&t| {
|
||||
utils::f64_approximately_in_range(t, 0., 1., MAX_ABSOLUTE_DIFFERENCE)
|
||||
&& utils::dvec2_approximately_in_range(self.unrestricted_evaluate(t), min, max, MAX_ABSOLUTE_DIFFERENCE).all()
|
||||
|
||||
Reference in New Issue
Block a user