Struct ggez::graphics::Point []

pub struct Point { /* fields omitted */ }

Immutable point type, consisting of x and y.

Methods

impl Point

Creates a new point from the given coordinates.

Returns a new point by shifting this point's coordinates by the given x and y values.

Returns a new point by multiplying this point's coordinates by the given scale factor.

Returns the x-coordinate of this point.

Returns the y-coordinate of this point.

Trait Implementations

impl Div<i32> for Point

impl Add<Point> for Point

impl Neg for Point

impl Debug for Point

Formats the value using the given formatter.

impl Clone for Point

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for Point

impl Into<(i32, i32)> for Point

impl Sub<Point> for Point

impl PartialEq<Point> for Point

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Mul<i32> for Point

impl Copy for Point

impl From<(i32, i32)> for Point

Performs the conversion.

impl Eq for Point