pub struct Projection {
pub t: Vec<Tf>,
}Expand description
A projection (a projection defines the frustrum inside which objects are seen).
tare the runtime transformations of the projection.
Fields§
§t: Vec<Tf>Implementations§
Source§impl Projection
impl Projection
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 Projection
impl RefUnwindSafe for Projection
impl Send for Projection
impl Sync for Projection
impl Unpin for Projection
impl UnwindSafe for Projection
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