pub struct Coord2(pub f64, pub f64);
Expand description
The resulting type after applying the + operator.
Performs copy-assignment from source. Read more
Creates a new coordinate from the specified set of components 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
The resulting type after applying the * operator.
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.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
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.
The type returned in the event of a conversion error.