pub struct View {
pub t: Vec<Tf>,
}Expand description
A view (a view represents the position, direction and angle of a camera).
tare the runtime transformations of the view.
Fields§
§t: Vec<Tf>Implementations§
Source§impl View
impl View
pub fn new() -> Self
Sourcepub fn transform(self, transformation: Transformation) -> Self
pub fn transform(self, transformation: Transformation) -> Self
Adds a new transformation with default speed evolution, start time and end time.
§Don’t
DO NOT call this function in multithreaded scenarios, as it calls static mut. See the crate root.
Sourcepub fn evolution_t(self, e: Evolution) -> Self
pub fn evolution_t(self, e: Evolution) -> Self
Modifies the speed evolution of the latest transformation added.
Auto Trait Implementations§
impl Freeze for View
impl RefUnwindSafe for View
impl Send for View
impl Sync for View
impl Unpin for View
impl UnwindSafe for View
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