pub struct Vertices {
pub data: Vec<[f32; 4]>,
}Expand description
The minimal implementation of Geometry
A collection of vertices in homogeneous coordinates (x, y, z, w). This is typically used as an intermediate representation, especially in animations.
Fields§
§data: Vec<[f32; 4]>Implementations§
Source§impl Vertices
impl Vertices
Sourcepub fn apply_transform<Trans: Fn(&[f32; 4]) -> [f32; 4]>(
&self,
transform: Trans,
) -> Self
pub fn apply_transform<Trans: Fn(&[f32; 4]) -> [f32; 4]>( &self, transform: Trans, ) -> Self
Applies a transform.
Sourcepub fn update_geometry_view(&self, view: &mut GeometryView)
pub fn update_geometry_view(&self, view: &mut GeometryView)
Trait Implementations§
Source§impl Geometry for Vertices
impl Geometry for Vertices
Source§fn init_view(&self, view: &mut GeometryView)
fn init_view(&self, view: &mut GeometryView)
Initializes a new
GeometryView.Source§fn update_view(&self, view: &mut GeometryView)
fn update_view(&self, view: &mut GeometryView)
Updates an existing
GeometryView with this object’s data.Source§impl InstanceUpdater for Vertices
Updates a instance with Vertices.
impl InstanceUpdater for Vertices
Updates a instance with Vertices.
§Notes
This implementation only modifies geometry view and it does not modify existing indices
fn update_instance(&self, instance: &mut RenderInstance)
Source§impl Interpolatable for Vertices
impl Interpolatable for Vertices
fn interpolate(&self, to: &Self, p: f32) -> Self
Auto Trait Implementations§
impl Freeze for Vertices
impl RefUnwindSafe for Vertices
impl Send for Vertices
impl Sync for Vertices
impl Unpin for Vertices
impl UnsafeUnpin for Vertices
impl UnwindSafe for Vertices
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.