Enum norad::PointType [−][src]
pub enum PointType {
Move,
Line,
OffCurve,
Curve,
QCurve,
}
Expand description
Possible types of points that can exist in a Contour
.
Variants
A point of this type must be the first in a contour. The reverse is not true: a contour does not necessarily start with a move point. When a contour does start with a move point, it signifies the beginning of an open contour. A closed contour does not start with a move and is defined as a cyclic list of points, with no predominant start point. There is always a next point and a previous point. For this purpose the list of points can be seen as endless in both directions. The actual list of points can be rotated arbitrarily (by removing the first N points and appending them at the end) while still describing the same outline.
Draw a straight line from the previous point to this point. The previous point must be a move, a line, a curve or a qcurve. It must not be an offcurve.
This point is part of a curve segment that goes up to the next point that is either a curve or a qcurve.
Draw a cubic bezier curve from the last non-offcurve point to this point. The number of offcurve points can be zero, one or two. If the number of offcurve points is zero, a straight line is drawn. If it is one, a quadratic curve is drawn. If it is two, a regular cubic bezier is drawn.
Similar to curve, but uses quadratic curves, using the TrueType “implied on-curve points” principle.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PointType
impl UnwindSafe for PointType
Blanket Implementations
Mutably borrows from an owned value. Read more