[][src]Struct bracket_lib::prelude::RectF

pub struct RectF {
    pub x1: f32,
    pub x2: f32,
    pub y1: f32,
    pub y2: f32,
}

Fields

x1: f32x2: f32y1: f32y2: f32

Methods

impl RectF[src]

pub fn with_size<T>(x: T, y: T, w: T, h: T) -> RectF where
    T: TryInto<f32>, 
[src]

pub fn with_exact<T>(x1: T, y1: T, x2: T, y2: T) -> RectF where
    T: TryInto<f32>, 
[src]

pub fn zero() -> RectF[src]

pub fn intersect(&self, other: &RectF) -> bool[src]

pub fn center(&self) -> Vec2[src]

pub fn point_in_rect(&self, point: Vec2) -> bool[src]

pub fn width(&self) -> f32[src]

pub fn height(&self) -> f32[src]

Trait Implementations

impl Add<RectF> for RectF[src]

type Output = RectF

The resulting type after applying the + operator.

impl Clone for RectF[src]

impl Copy for RectF[src]

impl Debug for RectF[src]

impl Default for RectF[src]

impl PartialEq<RectF> for RectF[src]

impl StructuralPartialEq for RectF[src]

Auto Trait Implementations

impl RefUnwindSafe for RectF

impl Send for RectF

impl Sync for RectF

impl Unpin for RectF

impl UnwindSafe for RectF

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,