Struct nitro::math::Rect
[−]
[src]
pub struct Rect { pub xy: Vector, pub size: Vector, }
Fields
xy: Vector
size: Vector
Methods
impl Rect
[src]
fn new(x: f32, y: f32, width: f32, height: f32) -> Rect
[src]
fn x(&self) -> f32
[src]
fn y(&self) -> f32
[src]
fn width(&self) -> f32
[src]
fn height(&self) -> f32
[src]
Trait Implementations
impl Debug for Rect
[src]
impl Copy for Rect
[src]
impl PartialEq for Rect
[src]
fn eq(&self, __arg_0: &Rect) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Rect) -> bool
[src]
This method tests for !=
.