Struct sb_rust_library::math::Point[][src]

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

A 2D point in real space.

Fields

x: f64y: f64

Implementations

impl Point[src]

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

Creates a new point struct.

Trait Implementations

impl Add<&'_ Vector> for Point[src]

type Output = Point

The resulting type after applying the + operator.

impl Add<&'_ Vector> for &Point[src]

type Output = Point

The resulting type after applying the + operator.

impl Add<Vector> for Point[src]

type Output = Point

The resulting type after applying the + operator.

impl Add<Vector> for &Point[src]

type Output = Point

The resulting type after applying the + operator.

impl AddAssign<&'_ Vector> for Point[src]

impl AddAssign<Vector> for Point[src]

impl Clone for Point[src]

impl Copy for Point[src]

impl From<(f64, f64)> for Point[src]

impl From<Point> for Vector[src]

impl From<Vector> for Point[src]

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

type Output = Vector

The resulting type after applying the - operator.

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

type Output = Vector

The resulting type after applying the - operator.

impl Sub<Point> for Point[src]

type Output = Vector

The resulting type after applying the - operator.

impl Sub<Point> for &Point[src]

type Output = Vector

The resulting type after applying the - operator.

Auto Trait Implementations

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> Pointable for T

type Init = T

The type for initializers.

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

type Owned = T

The resulting type after obtaining ownership.

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.