Struct mathf::vector2::Point2 [] [src]

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

A 2D Point with x and y coordinates: Point2

Fields

Methods

impl Point2
[src]

Instantiates a new Point2D with x and y.

Creates a new Vector2 relative to position (0, 0)

Trait Implementations

impl PartialEq for Point2
[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 Point2
[src]

Formats the value using the given formatter.

impl Add<Vector2> for Point2
[src]

The resulting type after applying the + operator

Overloads + for Points and Vectors: P + PQ = Q