Struct pax_engine::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, T> TransformAndBounds<F, T>
impl<F, T> 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) -> TransformAndBounds<F, T>
pub fn as_pure_scale(self) -> TransformAndBounds<F, T>
pub fn cast_spaces<A, B>(self) -> TransformAndBounds<A, B>
pub fn as_transform(&self) -> Transform2<F, T>
source§impl<F, T> TransformAndBounds<F, T>
impl<F, T> TransformAndBounds<F, T>
pub fn inverse(&self) -> TransformAndBounds<T, F>
pub fn intersects(&self, other: &TransformAndBounds<F, T>) -> bool
Trait Implementations§
source§impl<F, T> Clone for TransformAndBounds<F, T>
impl<F, T> Clone for TransformAndBounds<F, T>
source§fn clone(&self) -> TransformAndBounds<F, T>
fn clone(&self) -> TransformAndBounds<F, T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<F, T> Debug for TransformAndBounds<F, T>
impl<F, T> Debug for TransformAndBounds<F, T>
source§impl<F, T> Default for TransformAndBounds<F, T>
impl<F, T> Default for TransformAndBounds<F, T>
source§fn default() -> TransformAndBounds<F, T>
fn default() -> TransformAndBounds<F, T>
Returns the “default value” for a type. Read more
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, W2, W3> Mul<TransformAndBounds<W1, W2>> for TransformAndBounds<W2, W3>
impl<W1, W2, W3> 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.source§fn mul(
self,
rhs: TransformAndBounds<W1, W2>,
) -> <TransformAndBounds<W2, W3> as Mul<TransformAndBounds<W1, W2>>>::Output
fn mul( self, rhs: TransformAndBounds<W1, W2>, ) -> <TransformAndBounds<W2, W3> as Mul<TransformAndBounds<W1, W2>>>::Output
Performs the
* operation. Read moreimpl<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.