This is to allow creating a new Point, with a new type, from the type given.
i.e. Point::new(1 as u8, 1 as u8)::to::<u32>()
Where n
is a valid from 0.0 to 1.0,
this will return a point on the length of the line.
This swaps the start and end points.
Calculates if this overlaps another rectangle.
If it does, it will return the part of the line that intersects
within that rectangle.
None
is returned when no intersection is found.
Returns the atan2( y dist, x dist )
The resulting type after applying the +
operator.
fn add(self, other: Line<N>) -> Self
The resulting type after applying the +
operator.
The resulting type after applying the +
operator.
The resulting type after applying the +
operator.
The resulting type after applying the +
operator.
The resulting type after applying the +
operator.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
The resulting type after applying the /
operator.
fn div(self, other: Line<N>) -> Self
The resulting type after applying the /
operator.
fn div(self, other: N) -> Self
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
fn div(self, other: Size<N>) -> Self
The resulting type after applying the *
operator.
fn mul(self, other: Line<N>) -> Self
The resulting type after applying the *
operator.
fn mul(self, other: N) -> Self
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
fn mul(self, other: Size<N>) -> Self
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.
fn rem(self, other: Line<N>) -> Self
The resulting type after applying the %
operator.
The resulting type after applying the <<
operator.
fn shl(self, other: N) -> Self
The resulting type after applying the >>
operator.
fn shr(self, other: N) -> Self
The resulting type after applying the -
operator.
fn sub(self, other: Line<N>) -> Self
The resulting type after applying the -
operator.
The resulting type after applying the -
operator.
Returns the value in the new type, but clamped.
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>,
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.
impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,