Struct ggez::graphics::Point [] [src]

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

A simple 2D point.

Fields

Methods

impl Point
[src]

Creates a new Point at coordinates 0,0.

Trait Implementations

impl Copy for Point
[src]

impl Clone for Point
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Point
[src]

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

This method tests for !=.

impl Debug for Point
[src]

Formats the value using the given formatter.

impl Default for Point
[src]

Returns the "default value" for a type. Read more

impl From<[f32; 2]> for Point
[src]

Performs the conversion.