pub struct Circle {
pub x: f32,
pub y: f32,
pub r: f32,
}
Moves the Circle
’s origin to (x, y)
Scales the Circle
by a factor of sr
Checks whether the Circle
contains a Point
Checks whether the Circle
overlaps a Circle
Checks whether the Circle
overlaps a Rect
Translate rect origin by offset
vector
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Returns the argument unchanged.
impl<S> FromSample<S> for S
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T, U> ToSample<U> for T where
U: FromSample<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<S, T> Duplex<S> for T where
T: FromSample<S> + ToSample<S>,