Struct vodk_math::vec2::IntRectangle
[−]
[src]
pub struct IntRectangle<Unit = Untyped> { pub x: i32, pub y: i32, pub width: i32, pub height: i32, // some fields omitted }
Fields
x: i32
y: i32
width: i32
height: i32
Methods
impl<U> IntRectangle<U>
[src]
fn new(x: i32, y: i32, w: i32, h: i32) -> IntRectangle<U>
fn origin(&self) -> IntVector2D<U>
fn size(&self) -> IntSize2D<U>
fn move_by(&mut self, v: IntVector2D<U>)
fn top_left(&self) -> IntVector2D<U>
fn top_right(&self) -> IntVector2D<U>
fn bottom_right(&self) -> IntVector2D<U>
fn bottom_left(&self) -> IntVector2D<U>
fn x_most(&self) -> i32
fn y_most(&self) -> i32
fn contains(&self, other: &IntRectangle<U>) -> bool
fn ensure_invariant(&mut self)
Trait Implementations
impl<U: Unit> Debug for IntRectangle<U>
[src]
impl<U> Copy for IntRectangle<U>
[src]
impl<U> Clone for IntRectangle<U>
[src]
fn clone(&self) -> IntRectangle<U>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more