[−][src]Struct bvh_anim::Frame
A wrapper for a slice of motion values, so that they can be indexed by Channel
.
Methods
impl Frame
[src]
pub fn len(&self) -> usize
[src]
Returns the number of motion values in the Frame
.
pub fn is_empty(&self) -> bool
[src]
Returns true if the Frame
has a length of 0.
pub fn get(&self, channel: &Channel) -> Option<&f32>
[src]
Returns a reference to the motion element corresponding to Channel
, or None
if out of bounds.
pub fn get_mut(&mut self, channel: &Channel) -> Option<&mut f32>
[src]
Returns a mutable reference to the motion element corresponding to Channel
,
or None
if out of bounds.
pub fn as_slice(&self) -> &[f32]
[src]
Get the Frame
as a slice of f32
values.
pub fn as_mut_slice(&mut self) -> &mut [f32]
[src]
Get the Frame
as a mutable slice of f32
values.
Trait Implementations
impl PartialEq<Frame> for Frame
[src]
impl Debug for Frame
[src]
impl<'_> Index<&'_ Channel> for Frame
[src]
type Output = f32
The returned type after indexing.