Struct nannou::draw::properties::primitive::line::Line[][src]

pub struct Line<S = DefaultScalar> { /* fields omitted */ }

Properties related to drawing a Line.

Methods

impl<S> Line<S> where
    S: BaseFloat
[src]

Create a new Line. from its geometric parts.

Specify the thickness of the Line.

Specify half the thickness of the Line.

As the half-thickness is used more commonly within Line geometric calculations, this can be slightly more efficient than the full thickness method.

Specify the start point for the line.

Specify the end point for the line.

Use the given four points as the vertices (corners) of the quad.

Draw rounded caps on the ends of the line.

The radius of the semi-circle is equal to the line's half_thickness.

Draw rounded caps on the ends of the line.

The radius of the semi-circle is equal to the line's half_thickness.

Draw squared caps on the ends of the line.

The length of the protrusion is equal to the line's half_thickness.

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

impl<S> IntoDrawn<S> for Line<S> where
    S: BaseFloat
[src]

The iterator type yielding all unique vertices in the drawing. Read more

The iterator type yielding all vertex indices, describing edges of the drawing.

Consume self and return its Drawn form.

impl<S> From<Line<S>> for Line<S> where
    S: BaseFloat
[src]

Performs the conversion.

impl<S> From<Capped<S>> for Line<S> where
    S: BaseFloat
[src]

Performs the conversion.

impl<S> Default for Line<S> where
    S: BaseFloat
[src]

Returns the "default value" for a type. Read more

impl<S> SetOrientation<S> for Line<S>
[src]

Provide a mutable reference to the orientation::Properties for updating.

Describe orientation via the vector that points to the given target.

Describe orientation via the vector that points to the given node.

Describe orientation via the vector that points to the given point.

Build with the given Orientation along the x axis.

Build with the given Orientation along the x axis.

Build with the given Orientation along the x axis.

Specify the orientation around the x axis as an absolute value in radians.

Specify the orientation around the y axis as an absolute value in radians.

Specify the orientation around the z axis as an absolute value in radians.

Specify the orientation around the x axis as an absolute value in radians.

Specify the orientation around the y axis as an absolute value in radians.

Specify the orientation around the z axis as an absolute value in radians.

Specify the orientation around the x axis as a number of turns around the axis.

Specify the orientation around the y axis as a number of turns around the axis.

Specify the orientation around the z axis as a number of turns around the axis.

Specify the orientation along each axis with the given Vector of radians. Read more

Specify the orientation along each axis with the given Vector of degrees. Read more

Specify the orientation along each axis with the given Vector of "turns". Read more

Specify the orientation with the given Euler. Read more

Specify the orientation with the given Quaternion.

Specify the orientation around the x axis as a relative value in radians.

Specify the orientation around the y axis as a relative value in radians.

Specify the orientation around the z axis as a relative value in radians.

Specify the orientation around the x axis as a relative value in radians.

Specify the orientation around the y axis as a relative value in radians.

Specify the orientation around the z axis as a relative value in radians.

Specify the orientation around the x axis as a relative value in degrees.

Specify the orientation around the y axis as a relative value in degrees.

Specify the orientation around the z axis as a relative value in degrees.

Specify the orientation around the x axis as a relative value in degrees.

Specify the orientation around the y axis as a relative value in degrees.

Specify the orientation around the z axis as a relative value in degrees.

Specify the relative orientation around the x axis as a number of turns around the axis.

Specify the relative orientation around the y axis as a number of turns around the axis.

Specify the relative orientation around the z axis as a number of turns around the axis.

Specify the relative orientation around the x axis as a number of turns around the axis.

Specify the relative orientation around the y axis as a number of turns around the axis.

Specify the relative orientation around the z axis as a number of turns around the axis.

Specify a relative orientation along each axis with the given Vector of radians. Read more

Specify a relative orientation along each axis with the given Vector of radians. Read more

Specify a relative orientation along each axis with the given Vector of degrees. Read more

Specify a relative orientation along each axis with the given Vector of degrees. Read more

Specify a relative orientation along each axis with the given Vector of "turns". Read more

Specify a relative orientation along each axis with the given Vector of "turns". Read more

Specify a relative orientation with the given Euler. Read more

Specify a relative orientation with the given Euler. Read more

Specify the "pitch" of the orientation in radians. Read more

Specify the "yaw" of the orientation in radians. Read more

Specify the "roll" of the orientation in radians. Read more

Assuming we're looking at a 2D plane, positive values cause a clockwise rotation where the given value is specified in radians. Read more

impl<S> SetPosition<S> for Line<S>
[src]

Provide a mutable reference to the position::Properties for updating.

Build with the given Position along the x axis.

Build with the given Position along the y axis.

Build with the given Position along the z axis.

Build with the given Absolute Position along the x axis.

Build with the given Absolute Position along the y axis.

Build with the given Absolute Position along the z axis.

Set the Position with some two-dimensional point.

Set the Position with some three-dimensional point.

Set the Position with x y coordinates.

Set the Position with x y z coordinates.

Set the x Position Relative to the previous node.

Set the y Position Relative to the previous node.

Set the z Position Relative to the previous node.

Set the x and y Positions Relative to the previous node.

Set the x, y and z Positions Relative to the previous node.

Set the x Position Relative to the given node.

Set the y Position Relative to the given node.

Set the y Position Relative to the given node.

Set the x and y Positions Relative to the given node.

Set the x, y and z Positions Relative to the given node.

Set the Position as a Scalar along the x axis Relative to the middle of previous node. Read more

Set the Position as a Scalar along the y axis Relative to the middle of previous node. Read more

Set the Position as a Scalar along the z axis Relative to the middle of previous node. Read more

Set the Position as a Point Relative to the middle of the previous node.

Set the Position as a Point Relative to the middle of the previous node.

Set the Position as Scalars along the x and y axes Relative to the middle of the previous node. Read more

Set the Position as Scalars along the x, y and z axes Relative to the middle of the previous node. Read more

Set the position relative to the node with the given node::Index.

Set the position relative to the node with the given node::Index.

Set the position relative to the node with the given node::Index.

Set the position relative to the node with the given node::Index.

Set the position relative to the node with the given node::Index.

Set the position relative to the node with the given node::Index.

Set the position relative to the node with the given node::Index.

Build with the Position along the x axis as some distance from another node.

Build with the Position along the y axis as some distance from another node.

Build with the Position along the z axis as some distance from another node.

Build with the Position as some distance to the left of another node.

Build with the Position as some distance to the right of another node.

Build with the Position as some distance below another node.

Build with the Position as some distance above another node.

Build with the Position as some distance in front of another node.

Build with the Position as some distance behind another node.

Build with the Position along the x axis as some distance from the given node.

Build with the Position along the y axis as some distance from the given node.

Build with the Position along the z axis as some distance from the given node.

Build with the Position as some distance to the left of the given node.

Build with the Position as some distance to the right of the given node.

Build with the Position as some distance below the given node.

Build with the Position as some distance above the given node.

Build with the Position as some distance in front of the given node.

Build with the Position as some distance above the given node.

Align the Position of the node along the x axis.

Align the Position of the node along the y axis.

Align the Position of the node along the z axis.

Align the position to the left.

Align the position to the left.

Align the position to the middle.

Align the position to the right.

Align the position to the right.

Align the position to the bottom.

Align the position to the bottom.

Align the position to the middle.

Align the position to the top.

Align the position to the top.

Align the position to the front.

Align the position to the front.

Align the position to the middle.

Align the position to the back.

Align the position to the back.

Align the Position of the node with the given node along the x axis.

Align the Position of the node with the given node along the y axis.

Align the Position of the node with the given node along the z axis.

Align the position to the left.

Align the position to the left.

Align the position to the middle.

Align the position to the right.

Align the position to the right.

Align the position to the bottom.

Align the position to the bottom.

Align the position to the middle.

Align the position to the top.

Align the position to the top.

Align the position to the front.

Align the position to the front.

Align the position to the middle.

Align the position to the back.

Align the position to the back.

Align the node to the middle of the last node.

Align the node to the bottom left of the last node.

Align the node to the middle left of the last node.

Align the node to the top left of the last node.

Align the node to the middle top of the last node.

Align the node to the top right of the last node.

Align the node to the middle right of the last node.

Align the node to the bottom right of the last node.

Align the node to the middle bottom of the last node.

Align the node in the middle of the given Node.

Align the node to the bottom left of the given Node.

Align the node to the middle left of the given Node.

Align the node to the top left of the given Node.

Align the node to the middle top of the given Node.

Align the node to the top right of the given Node.

Align the node to the middle right of the given Node.

Align the node to the bottom right of the given Node.

Align the node to the middle bottom of the given Node.

impl<S> SetColor<ColorScalar> for Line<S>
[src]

Provide a mutable reference to the RGBA field which can be used for setting colors.

Specify a color. Read more

Specify the color via red, green and blue channels.

Specify the color via red, green, blue and alpha channels.

Specify the color via hue, saturation and luminance. Read more

Specify the color via hue, saturation, luminance and an alpha channel. Read more

Specify the color via hue, saturation and value (brightness). Read more

Specify the color via hue, saturation, value (brightness) and an alpha channel. Read more

impl<S> From<Line<S>> for Primitive<S>
[src]

Performs the conversion.

Auto Trait Implementations

impl<S> Send for Line<S> where
    S: Send

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