View

Struct View 

Source
pub struct View {
    pub t: Vec<Tf>,
}
Expand description

A view (a view represents the position, direction and angle of a camera).

  • t are the runtime transformations of the view.

Fields§

§t: Vec<Tf>

Implementations§

Source§

impl View

Source

pub fn new() -> Self

Source

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.

Source

pub fn evolution_t(self, e: Evolution) -> Self

Modifies the speed evolution of the latest transformation added.

Source

pub fn start_t(self, start: f32) -> Self

Modifies the start time of the latest transformation added. A start after an end will result in the transformation being instantaneous at start.

Source

pub fn end_t(self, end: f32) -> Self

Modifies the end time of the latest transformation added. An end before a start will result in the transformation being instantaneous at start.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.