Struct norad::ContourPoint [−][src]
pub struct ContourPoint {
pub x: f64,
pub y: f64,
pub typ: PointType,
pub smooth: bool,
pub name: Option<String>,
// some fields omitted
}
Expand description
A single point in a Contour
.
Fields
x: f64
y: f64
typ: PointType
smooth: bool
name: Option<String>
Implementations
pub fn new(
x: f64,
y: f64,
typ: PointType,
smooth: bool,
name: Option<String>,
identifier: Option<Identifier>,
lib: Option<Plist>
) -> Self
Returns a mutable reference to the contour’s lib.
Replaces the actual lib by the lib given in parameter, returning the old lib if present. Sets a new UUID v4 identifier if none is set already.
Takes the lib out of the contour, leaving a None in its place.
Returns an immutable reference to the contour’s identifier.
Replaces the actual identifier by the identifier given in parameter, returning the old identifier if present.
Returns a kurbo::Point
with this ContourPoint
’s coordinates.
Applies a transformation matrix to the point’s coordinates
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ContourPoint
impl Send for ContourPoint
impl Sync for ContourPoint
impl Unpin for ContourPoint
impl UnwindSafe for ContourPoint
Blanket Implementations
Mutably borrows from an owned value. Read more