Skip to content

Commit

Permalink
Fix spelling of "parameterized", update typos (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored Nov 29, 2024
1 parent dc50b30 commit cc2ec58
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,4 +285,4 @@ jobs:
- uses: actions/checkout@v4

- name: check typos
uses: crate-ci/typos@v1.27.0
uses: crate-ci/typos@v1.28.1
16 changes: 8 additions & 8 deletions src/param_curve.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2018 the Kurbo Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! A trait for curves parametrized by a scalar.
//! A trait for curves parameterized by a scalar.
use core::ops::Range;

Expand All @@ -18,7 +18,7 @@ use crate::common::FloatFuncs;
/// 2d graphics.
pub const DEFAULT_ACCURACY: f64 = 1e-6;

/// A curve parametrized by a scalar.
/// A curve parameterized by a scalar.
///
/// If the result is interpreted as a point, this represents a curve.
/// But the result can be interpreted as a vector as well.
Expand Down Expand Up @@ -50,7 +50,7 @@ pub trait ParamCurve: Sized {

// TODO: I might not want to have separate traits for all these.

/// A differentiable parametrized curve.
/// A differentiable parameterized curve.
pub trait ParamCurveDeriv {
/// The parametric curve obtained by taking the derivative of this one.
type DerivResult: ParamCurve;
Expand Down Expand Up @@ -78,7 +78,7 @@ pub trait ParamCurveDeriv {
}
}

/// A parametrized curve that can have its arc length measured.
/// A parameterized curve that can have its arc length measured.
pub trait ParamCurveArclen: ParamCurve {
/// The arc length of the curve.
///
Expand Down Expand Up @@ -123,7 +123,7 @@ pub trait ParamCurveArclen: ParamCurve {
}
}

/// A parametrized curve that can have its signed area measured.
/// A parameterized curve that can have its signed area measured.
pub trait ParamCurveArea {
/// Compute the signed area under the curve.
///
Expand Down Expand Up @@ -154,7 +154,7 @@ pub struct Nearest {
pub t: f64,
}

/// A parametrized curve that reports the nearest point.
/// A parameterized curve that reports the nearest point.
pub trait ParamCurveNearest {
/// Find the position on the curve that is nearest to the given point.
///
Expand All @@ -163,7 +163,7 @@ pub trait ParamCurveNearest {
fn nearest(&self, p: Point, accuracy: f64) -> Nearest;
}

/// A parametrized curve that reports its curvature.
/// A parameterized curve that reports its curvature.
pub trait ParamCurveCurvature: ParamCurveDeriv
where
Self::DerivResult: ParamCurveDeriv,
Expand All @@ -187,7 +187,7 @@ where
/// subdivided to limit the number of extrema.
pub const MAX_EXTREMA: usize = 4;

/// A parametrized curve that reports its extrema.
/// A parameterized curve that reports its extrema.
pub trait ParamCurveExtrema: ParamCurve {
/// Compute the extrema of the curve.
///
Expand Down

0 comments on commit cc2ec58

Please sign in to comment.