Struct mathf::vector2::Point2
[−]
[src]
pub struct Point2 { pub x: f32, pub y: f32, }
A 2D Point with x and y coordinates: Point2
Fields
x: f32
y: f32
Methods
impl Point2
[src]
fn new(x: f32, y: f32) -> Point2
Instantiates a new Point2D with x and y.
fn to_vec(self) -> Vector2
Creates a new Vector2 relative to position (0, 0)
Trait Implementations
impl PartialEq for Point2
[src]
fn eq(&self, __arg_0: &Point2) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Point2) -> bool
This method tests for !=
.