pub struct Views { /* private fields */ }Implementations§
Source§impl Views
impl Views
pub fn root(&self) -> ImageSpaceId
pub fn root_mut(&mut self) -> &mut ImageSpace
pub fn get(&self, id: ImageSpaceId) -> Option<&ImageSpace>
pub fn get_mut(&mut self, id: ImageSpaceId) -> Option<&mut ImageSpace>
pub fn placed(&self, id: ImageSpaceId) -> bool
Sourcepub fn to_root(&self, image: ImageSpaceId) -> Option<Placement>
pub fn to_root(&self, image: ImageSpaceId) -> Option<Placement>
The composed placement from image into the root, None for a space never placed, unplaced, or whose slot a later place reused.
pub fn ray(&self, image: ImageSpaceId, ndc: [f32; 2]) -> Option<ImageRay>
Sourcepub fn depth(&self, point: [f32; 3]) -> Option<f32>
pub fn depth(&self, point: [f32; 3]) -> Option<f32>
The root eye’s projective depth of an image-space position; None nearer than its near plane.
pub fn ndc(&self, point: [f32; 3]) -> Option<[f32; 2]>
Auto Trait Implementations§
impl Freeze for Views
impl RefUnwindSafe for Views
impl Send for Views
impl Sync for Views
impl Unpin for Views
impl UnsafeUnpin for Views
impl UnwindSafe for Views
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