Struct envelope::BezierPoint [] [src]

pub struct BezierPoint<X, Y> where
    X: Clone + Copy,
    Y: Spatial + Clone + Copy,
    Y::Scalar: Float
{ pub x: X, pub y: Y, pub curve: Y::Scalar, }

A type whose interpolation may involve some quadratic bezier curve.

Fields

Methods

impl<X, Y> BezierPoint<X, Y> where
    X: Clone + Copy,
    Y: Spatial + Clone + Copy,
    Y::Scalar: Float
[src]

Constructor for a BezierPoint.

Trait Implementations

impl<X: Debug, Y: Debug> Debug for BezierPoint<X, Y> where
    X: Clone + Copy,
    Y: Spatial + Clone + Copy,
    Y::Scalar: Float,
    Y::Scalar: Debug
[src]

Formats the value using the given formatter.

impl<X: Clone, Y: Clone> Clone for BezierPoint<X, Y> where
    X: Clone + Copy,
    Y: Spatial + Clone + Copy,
    Y::Scalar: Float,
    Y::Scalar: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<X: Copy, Y: Copy> Copy for BezierPoint<X, Y> where
    X: Clone + Copy,
    Y: Spatial + Clone + Copy,
    Y::Scalar: Float,
    Y::Scalar: Copy
[src]

impl<X: PartialEq, Y: PartialEq> PartialEq for BezierPoint<X, Y> where
    X: Clone + Copy,
    Y: Spatial + Clone + Copy,
    Y::Scalar: Float,
    Y::Scalar: PartialEq
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<X, Y> Point for BezierPoint<X, Y> where
    X: PartialEq + NumCast + Clone + Copy,
    Y: PartialEq + NumCast + Spatial + Clone + Copy,
    Y::Scalar: Float
[src]

Convert X to Y's Scalar.

X (often associated with time).

Y (often associated with some value).

Interpolate between two points and return y for the given x.