[][src]Struct rust_3d::Point2D

pub struct Point2D {
    pub x: f64,
    pub y: f64,
}

Point2D, a point / position within 2D space

Fields

x: f64y: f64

Implementations

impl Point2D[src]

pub fn new(x: f64, y: f64) -> Self[src]

Trait Implementations

impl<P, '_, '_> Add<&'_ P> for &'_ Point2D where
    P: Is2D
[src]

type Output = Point2D

The resulting type after applying the + operator.

impl<P> Add<P> for Point2D where
    P: Is2D
[src]

type Output = Point2D

The resulting type after applying the + operator.

impl<'_> Add<Point2D> for &'_ Point2D[src]

type Output = Point2D

The resulting type after applying the + operator.

impl Clone for Point2D[src]

impl Debug for Point2D[src]

impl Default for Point2D[src]

impl Display for Point2D[src]

impl Div<f64> for Point2D[src]

type Output = Point2D

The resulting type after applying the / operator.

impl<'_> Div<f64> for &'_ Point2D[src]

type Output = Point2D

The resulting type after applying the / operator.

impl Eq for Point2D[src]

impl Hash for Point2D[src]

impl Is2D for Point2D[src]

impl IsBuildable2D for Point2D[src]

impl IsBuildableND for Point2D[src]

impl IsEditable2D for Point2D[src]

impl IsEditableND for Point2D[src]

impl IsMatrix3Transformable for Point2D[src]

impl IsMovable2D for Point2D[src]

impl IsND for Point2D[src]

impl IsTransFormableTo3D for Point2D[src]

impl Mul<f64> for Point2D[src]

type Output = Point2D

The resulting type after applying the * operator.

impl<'_> Mul<f64> for &'_ Point2D[src]

type Output = Point2D

The resulting type after applying the * operator.

impl Neg for Point2D[src]

type Output = Point2D

The resulting type after applying the - operator.

impl<'_> Neg for &'_ Point2D[src]

type Output = Point2D

The resulting type after applying the - operator.

impl Ord for Point2D[src]

impl PartialEq<Point2D> for Point2D[src]

impl PartialOrd<Point2D> for Point2D[src]

impl StructuralPartialEq for Point2D[src]

impl<P, '_, '_> Sub<&'_ P> for &'_ Point2D where
    P: Is2D
[src]

type Output = Point2D

The resulting type after applying the - operator.

impl<P> Sub<P> for Point2D where
    P: Is2D
[src]

type Output = Point2D

The resulting type after applying the - operator.

impl<'_> Sub<Point2D> for &'_ Point2D[src]

type Output = Point2D

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for Point2D

impl Send for Point2D

impl Sync for Point2D

impl Unpin for Point2D

impl UnwindSafe for Point2D

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.