[−][src]Struct pizarra::point::Point
Fields
x: f64
y: f64
Implementations
impl Point
[src]
pub fn new(x: f64, y: f64) -> Point
[src]
pub fn to_a(self) -> [f64; 2]
[src]
pub fn magnitude(&self) -> f64
[src]
pub fn distance(&self, other: Point) -> f64
[src]
pub fn abs(self) -> Point
[src]
pub fn min(self, other: Point) -> Point
[src]
pub fn max(self, other: Point) -> Point
[src]
pub fn dot(self, other: Point) -> f64
[src]
pub fn is_nan(&self) -> bool
[src]
Trait Implementations
impl Add<Point> for Point
[src]
type Output = Point
The resulting type after applying the +
operator.
pub fn add(self, rhs: Point) -> Point
[src]
impl AddAssign<Point> for Point
[src]
pub fn add_assign(&mut self, rhs: Point)
[src]
impl Clone for Point
[src]
impl Copy for Point
[src]
impl Debug for Point
[src]
impl Display for Point
[src]
impl Div<f64> for Point
[src]
type Output = Point
The resulting type after applying the /
operator.
pub fn div(self, rhs: f64) -> Point
[src]
impl From<[f64; 2]> for Point
[src]
impl From<(f64, f64)> for Point
[src]
impl FromStr for Point
[src]
type Err = Error
The associated error which can be returned from parsing.
pub fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Mul<f64> for Point
[src]
type Output = Point
The resulting type after applying the *
operator.
pub fn mul(self, rhs: f64) -> Self::Output
[src]
impl PartialEq<Point> for Point
[src]
impl StructuralPartialEq for Point
[src]
impl Sub<Point> for Point
[src]
type Output = Point
The resulting type after applying the -
operator.
pub fn sub(self, rhs: Point) -> Point
[src]
impl SubAssign<Point> for Point
[src]
pub fn sub_assign(&mut self, rhs: Point)
[src]
Auto Trait Implementations
impl RefUnwindSafe for Point
[src]
impl Send for Point
[src]
impl Sync for Point
[src]
impl Unpin for Point
[src]
impl UnwindSafe for Point
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,