Struct flo_canvas::Coord2[][src]

pub struct Coord2(pub f64, pub f64);
Expand description

Represents a 2D point

Tuple Fields

0: f641: f64

Trait Implementations

The resulting type after applying the + operator.

Performs the + operation. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Creates a new coordinate from the specified set of components Read more

Returns the origin coordinate Read more

The number of components in this coordinate Read more

Retrieves the component at the specified index Read more

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

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

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

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

Computes the magnitude of this vector Read more

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

Returns true if this coordinate has a NaN component Read more

Round this coordinate so that it is accurate to a certain precision Read more

True if this point is within max_distance of another point Read more

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

X component of this coordinate

Y component of this coordinate

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

The resulting type after applying the * operator.

Performs the * operation. Read more

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

This method tests for !=.

The resulting type after applying the - operator.

Performs the - operation. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Computes the normal at a point, given its tangent

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.