Struct flo_animation::PathPoint [] [src]

pub struct PathPoint {
    pub position: (f32, f32),
}

A point in a path

Fields

X, Y coordinates of this point

Methods

impl PathPoint
[src]

[src]

Creates a new path point

[src]

[src]

Trait Implementations

impl Clone for PathPoint
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for PathPoint
[src]

impl PartialEq for PathPoint
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for PathPoint
[src]

[src]

Formats the value using the given formatter. Read more

impl Add<PathPoint> for PathPoint
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sub<PathPoint> for PathPoint
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Mul<f64> for PathPoint
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Coordinate for PathPoint
[src]

[src]

Creates a new coordinate from the specified set of components

[src]

Returns the origin coordinate

[src]

The number of components in this coordinate

[src]

Retrieves the component at the specified index

[src]

Returns a point made up of the biggest components of the two points

[src]

Returns a point made up of the smallest components of the two points

[src]

Computes the distance between this coordinate and another of the same type Read more

[src]

Computes the dot product for this vector along with another vector Read more

[src]

Computes the magnitude of this vector Read more

[src]

Treating this as a vector, returns a unit vector in the same direction Read more

[src]

[src]

Generates a smoothed version of a set of coordinates, using the specified weights (weights should add up to 1.0). Read more

impl From<(f32, f32)> for PathPoint
[src]

[src]

Performs the conversion.

impl From<(f64, f64)> for PathPoint
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for PathPoint

impl Sync for PathPoint