Struct pax_runtime::rendering::TransformAndBounds
source · pub struct TransformAndBounds {
pub transform: Transform2<NodeLocal, Window>,
pub bounds: (f64, f64),
}Expand description
Stores the computed transform and the pre-transform bounding box (where the other corner is the origin). Useful for ray-casting, along with
Fields§
§transform: Transform2<NodeLocal, Window>§bounds: (f64, f64)Implementations§
Trait Implementations§
source§impl Clone for TransformAndBounds
impl Clone for TransformAndBounds
source§fn clone(&self) -> TransformAndBounds
fn clone(&self) -> TransformAndBounds
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 Debug for TransformAndBounds
impl Debug for TransformAndBounds
source§impl PartialEq for TransformAndBounds
impl PartialEq for TransformAndBounds
source§fn eq(&self, other: &TransformAndBounds) -> bool
fn eq(&self, other: &TransformAndBounds) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TransformAndBounds
Auto Trait Implementations§
impl RefUnwindSafe for TransformAndBounds
impl Send for TransformAndBounds
impl Sync for TransformAndBounds
impl Unpin for TransformAndBounds
impl UnwindSafe for TransformAndBounds
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, 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.