[−][src]Struct pathfinder_geometry::rect::RectI
NB: The origin is inclusive, while the lower right point is exclusive.
Methods
impl RectI
[src]
pub fn new(origin: Vector2I, size: Vector2I) -> RectI
[src]
pub fn from_points(origin: Vector2I, lower_right: Vector2I) -> RectI
[src]
pub fn origin(&self) -> Vector2I
[src]
pub fn size(&self) -> Vector2I
[src]
pub fn origin_x(self) -> i32
[src]
pub fn origin_y(self) -> i32
[src]
pub fn width(self) -> i32
[src]
pub fn height(self) -> i32
[src]
pub fn upper_right(&self) -> Vector2I
[src]
pub fn lower_left(&self) -> Vector2I
[src]
pub fn lower_right(&self) -> Vector2I
[src]
pub fn scale(self, factor: i32) -> RectI
[src]
pub fn scale_xy(self, factors: Vector2I) -> RectI
[src]
pub fn min_x(self) -> i32
[src]
pub fn min_y(self) -> i32
[src]
pub fn max_x(self) -> i32
[src]
pub fn max_y(self) -> i32
[src]
pub fn intersects(self, other: RectI) -> bool
[src]
pub fn intersection(self, other: RectI) -> Option<RectI>
[src]
pub fn contains_point(&self, point: Vector2I) -> bool
[src]
pub fn contract(self, amount: Vector2I) -> RectI
[src]
pub fn to_f32(&self) -> RectF
[src]
Trait Implementations
impl Clone for RectI
[src]
impl Copy for RectI
[src]
impl Debug for RectI
[src]
impl Default for RectI
[src]
impl PartialEq<RectI> for RectI
[src]
impl StructuralPartialEq for RectI
[src]
Auto Trait Implementations
impl RefUnwindSafe for RectI
impl Send for RectI
impl Sync for RectI
impl Unpin for RectI
impl UnwindSafe for RectI
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,