[−][src]Struct pathfinder_geometry::rect::RectF
Methods
impl RectF
[src]
pub fn new(origin: Vector2F, size: Vector2F) -> RectF
[src]
pub fn from_points(origin: Vector2F, lower_right: Vector2F) -> RectF
[src]
pub fn origin(self) -> Vector2F
[src]
pub fn size(self) -> Vector2F
[src]
pub fn origin_x(self) -> f32
[src]
pub fn origin_y(self) -> f32
[src]
pub fn width(self) -> f32
[src]
pub fn height(self) -> f32
[src]
pub fn upper_right(self) -> Vector2F
[src]
pub fn lower_left(self) -> Vector2F
[src]
pub fn lower_right(self) -> Vector2F
[src]
pub fn set_origin_x(&mut self, x: f32)
[src]
pub fn set_origin_y(&mut self, y: f32)
[src]
pub fn contains_point(self, point: Vector2F) -> bool
[src]
pub fn contains_rect(self, other: RectF) -> bool
[src]
pub fn is_empty(self) -> bool
[src]
pub fn union_point(self, point: Vector2F) -> RectF
[src]
pub fn union_rect(self, other: RectF) -> RectF
[src]
pub fn intersects(self, other: RectF) -> bool
[src]
pub fn intersection(self, other: RectF) -> Option<RectF>
[src]
pub fn min_x(self) -> f32
[src]
pub fn min_y(self) -> f32
[src]
pub fn max_x(self) -> f32
[src]
pub fn max_y(self) -> f32
[src]
pub fn center(self) -> Vector2F
[src]
pub fn round(self) -> RectF
[src]
Rounds all points to the nearest integer.
pub fn round_out(self) -> RectF
[src]
pub fn dilate<A>(self, amount: A) -> RectF where
A: IntoVector2F,
[src]
A: IntoVector2F,
pub fn contract<A>(self, amount: A) -> RectF where
A: IntoVector2F,
[src]
A: IntoVector2F,
pub fn to_i32(&self) -> RectI
[src]
Trait Implementations
impl Add<Vector2F> for RectF
[src]
type Output = RectF
The resulting type after applying the +
operator.
fn add(self, other: Vector2F) -> RectF
[src]
impl Add<f32> for RectF
[src]
type Output = RectF
The resulting type after applying the +
operator.
fn add(self, other: f32) -> RectF
[src]
impl Clone for RectF
[src]
impl Copy for RectF
[src]
impl Debug for RectF
[src]
impl Default for RectF
[src]
impl Mul<RectF> for Transform2F
[src]
type Output = RectF
The resulting type after applying the *
operator.
fn mul(self, rect: RectF) -> RectF
[src]
impl Mul<RectF> for Perspective
[src]
type Output = RectF
The resulting type after applying the *
operator.
fn mul(self, rect: RectF) -> RectF
[src]
impl Mul<Vector2F> for RectF
[src]
type Output = RectF
The resulting type after applying the *
operator.
fn mul(self, factors: Vector2F) -> RectF
[src]
impl Mul<f32> for RectF
[src]
type Output = RectF
The resulting type after applying the *
operator.
fn mul(self, factor: f32) -> RectF
[src]
impl PartialEq<RectF> for RectF
[src]
impl StructuralPartialEq for RectF
[src]
impl Sub<Vector2F> for RectF
[src]
type Output = RectF
The resulting type after applying the -
operator.
fn sub(self, other: Vector2F) -> RectF
[src]
impl Sub<f32> 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]
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>,