Struct nannou::geom::graph::edge::Edge[][src]

pub struct Edge<S = DefaultScalar> {
    pub kind: Kind,
    pub weight: S,
}

Describes an edge within the geometry graph.

Fields

The unique kind of edge.

Represents the combination of Axis and Relative association described by the edge.

A weight whose value's meaning depends on the edge's Relative association.

For Position kind edges this represents a relative scalar value. For Orientation kind edges this represents a relative angle in radians. For Scale kind edges this represents the relative scale.

Methods

impl<S> Edge<S>
[src]

Simple constructor for an Edge.

Simple constructor for an Edge describing a relative association over the X axis.

Simple constructor for an Edge describing a relative association over the Y axis.

Simple constructor for an Edge describing a relative association over the Z axis.

Simple constructor for an Edge describing a relative position over the given axis.

Simple constructor for an Edge describing a relative orientation over the given axis.

Simple constructor for an Edge describing a relative scale over the given axis.

Simple constructor for an Edge describing a relative position over the X axis.

Simple constructor for an Edge describing a relative orientation over the X axis.

Simple constructor for an Edge describing a relative scale over the X axis.

Simple constructor for an Edge describing a relative position over the Y axis.

Simple constructor for an Edge describing a relative orientation over the Y axis.

Simple constructor for an Edge describing a relative scale over the Y axis.

Simple constructor for an Edge describing a relative position over the Z axis.

Simple constructor for an Edge describing a relative orientation over the Z axis.

Simple constructor for an Edge describing a relative scale over the Z axis.

Trait Implementations

impl<S: Copy> Copy for Edge<S>
[src]

impl<S: Clone> Clone for Edge<S>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S: Debug> Debug for Edge<S>
[src]

Formats the value using the given formatter. Read more

impl<S: PartialEq> PartialEq for Edge<S>
[src]

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<S> Send for Edge<S> where
    S: Send

impl<S> Sync for Edge<S> where
    S: Sync