Struct pax_runtime::layout::TransformAndBounds
source · pub struct TransformAndBounds<F, T = F> {
pub transform: Transform2<F, T>,
pub bounds: (f64, f64),
}Fields§
§transform: Transform2<F, T>§bounds: (f64, f64)Implementations§
source§impl<F: Space, T: Space> TransformAndBounds<F, T>
impl<F: Space, T: Space> TransformAndBounds<F, T>
pub fn center(&self) -> Point2<T>
pub fn corners(&self) -> [Point2<T>; 4]
pub fn contains_point(&self, point: Point2<T>) -> bool
pub fn as_pure_size(self) -> Self
pub fn as_pure_scale(self) -> Self
pub fn cast_spaces<A: Space, B: Space>(self) -> TransformAndBounds<A, B>
pub fn as_transform(&self) -> Transform2<F, T>
source§impl<F: Space, T: Space> TransformAndBounds<F, T>
impl<F: Space, T: Space> TransformAndBounds<F, T>
pub fn inverse(&self) -> TransformAndBounds<T, F>
pub fn intersects(&self, other: &Self) -> bool
Trait Implementations§
source§impl<F, T> Clone for TransformAndBounds<F, T>
impl<F, T> Clone for TransformAndBounds<F, T>
source§impl<F, T> Interpolatable for TransformAndBounds<F, T>
impl<F, T> Interpolatable for TransformAndBounds<F, T>
Properties that are currently re-computed each frame before rendering.
fn interpolate(&self, _other: &Self, _t: f64) -> Self
source§impl<W1: Space, W2: Space, W3: Space> Mul<TransformAndBounds<W1, W2>> for TransformAndBounds<W2, W3>
impl<W1: Space, W2: Space, W3: Space> Mul<TransformAndBounds<W1, W2>> for TransformAndBounds<W2, W3>
§type Output = TransformAndBounds<W1, W3>
type Output = TransformAndBounds<W1, W3>
The resulting type after applying the
* operator.impl<F, T> Copy for TransformAndBounds<F, T>
Auto Trait Implementations§
impl<F, T> Freeze for TransformAndBounds<F, T>
impl<F, T> RefUnwindSafe for TransformAndBounds<F, T>where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<F, T> Send for TransformAndBounds<F, T>
impl<F, T> Sync for TransformAndBounds<F, T>
impl<F, T> Unpin for TransformAndBounds<F, T>
impl<F, T> UnwindSafe for TransformAndBounds<F, T>where
F: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.