Expose Contour points.

This commit is contained in:
Sebastian 2021-08-13 12:29:21 +03:00 committed by Josh Matthews
parent 842a897a8a
commit 65d8c7d6d9
1 changed files with 6 additions and 0 deletions

View File

@ -486,6 +486,12 @@ impl Contour {
self.closed self.closed
} }
/// Returns the points (on curve and control points) of the Contour
#[inline]
pub fn points(&self) -> &[Vector2F] {
&self.points
}
/// Returns the position of the point (which can be an on-curve point or a control point) with /// Returns the position of the point (which can be an on-curve point or a control point) with
/// the given index. /// the given index.
/// ///