pub struct CompositeCameraCache { /* private fields */ }Implementations
sourceimpl CompositeCameraCache
impl CompositeCameraCache
pub fn last_view_size(&self) -> Vec2
pub fn screen_to_world_space(&self, entity: Entity, point: Vec2) -> Option<Vec2>
pub fn world_to_screen_space(&self, entity: Entity, point: Vec2) -> Option<Vec2>
pub fn world_transform(&self, entity: Entity) -> Option<Mat2d>
pub fn world_inverse_transform(&self, entity: Entity) -> Option<Mat2d>
pub fn world_both_transforms(&self, entity: Entity) -> Option<(Mat2d, Mat2d)>
pub fn calculate_view_box(&self, entity: Entity) -> Option<Rect>
pub fn calculate_world_size(&self, entity: Entity) -> Option<Vec2>
Trait Implementations
sourceimpl Debug for CompositeCameraCache
impl Debug for CompositeCameraCache
sourceimpl Default for CompositeCameraCache
impl Default for CompositeCameraCache
sourcefn default() -> CompositeCameraCache
fn default() -> CompositeCameraCache
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for CompositeCameraCache
impl Send for CompositeCameraCache
impl Sync for CompositeCameraCache
impl Unpin for CompositeCameraCache
impl UnwindSafe for CompositeCameraCache
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more