pub struct CompositeCameraCache { /* private fields */ }Implementations§
Source§impl 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§
Source§impl Debug for CompositeCameraCache
impl Debug for CompositeCameraCache
Source§impl Default for CompositeCameraCache
impl Default for CompositeCameraCache
Source§fn default() -> CompositeCameraCache
fn default() -> CompositeCameraCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CompositeCameraCache
impl RefUnwindSafe for CompositeCameraCache
impl Send for CompositeCameraCache
impl Sync for CompositeCameraCache
impl Unpin for CompositeCameraCache
impl UnwindSafe for CompositeCameraCache
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more