pub struct GeoCacheFrame {
pub frame_index: u32,
pub time_seconds: f32,
pub positions: Vec<[f32; 3]>,
pub normals: Option<Vec<[f32; 3]>>,
}Expand description
Per-frame data stored in a geometry cache.
Fields§
§frame_index: u32Zero-based frame index.
time_seconds: f32Time stamp of this frame in seconds.
positions: Vec<[f32; 3]>Per-vertex positions ([x, y, z]).
normals: Option<Vec<[f32; 3]>>Optional per-vertex normals ([nx, ny, nz]).
Trait Implementations§
Source§impl Clone for GeoCacheFrame
impl Clone for GeoCacheFrame
Source§fn clone(&self) -> GeoCacheFrame
fn clone(&self) -> GeoCacheFrame
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeoCacheFrame
impl Debug for GeoCacheFrame
Source§impl PartialEq for GeoCacheFrame
impl PartialEq for GeoCacheFrame
impl StructuralPartialEq for GeoCacheFrame
Auto Trait Implementations§
impl Freeze for GeoCacheFrame
impl RefUnwindSafe for GeoCacheFrame
impl Send for GeoCacheFrame
impl Sync for GeoCacheFrame
impl Unpin for GeoCacheFrame
impl UnsafeUnpin for GeoCacheFrame
impl UnwindSafe for GeoCacheFrame
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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