pub enum Shape {
Point(VTNIndex),
Line(VTNIndex, VTNIndex),
Triangle(VTNIndex, VTNIndex, VTNIndex),
}
Expand description
The various shapes supported by this library that can be found in a Polylist.
Convex polygons more complicated than a triangle are automatically converted into triangles.
Variants
Point(VTNIndex)
A point specified by its position.
Line(VTNIndex, VTNIndex)
A line specified by its endpoints.
Triangle(VTNIndex, VTNIndex, VTNIndex)
A triangle specified by its three vertices.
Trait Implementations
impl Copy for Shape
Auto Trait Implementations
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnwindSafe for Shape
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more