Struct ncollide_procedural::Polyline
[−]
[src]
pub struct Polyline<P: Point> { // some fields omitted }
Geometric description of a polyline.
Methods
impl<P: Point> Polyline<P>
[src]
impl<P: Point> Polyline<P>
[src]
fn unwrap(self) -> (Vec<P>, Option<Vec<P::Vect>>)
Moves the polyline data out of it.
fn coords(&self) -> &[P]
The coordinates of this polyline vertices.
fn coords_mut(&mut self) -> &mut [P]
The mutable coordinates of this polyline vertices.
fn normals(&self) -> Option<&[P::Vect]>
The normals of this polyline vertices.
fn normals_mut(&mut self) -> Option<&mut [P::Vect]>
The mutable normals of this polyline vertices.
fn translate_by<T: Translate<P>>(&mut self, t: &T)
Translates each vertex of this polyline.
fn rotate_by<R: Rotate<P::Vect>>(&mut self, r: &R)
Rotates each vertex and normal of this polyline.
fn transform_by<T: Transform<P> + Rotate<P::Vect>>(&mut self, t: &T)
Transforms each vertex and rotates each normal of this polyline.
fn scale_by_scalar(&mut self, s: &P::Vect::Scalar)
Scales each vertex of this polyline.
impl<P> Polyline<P> where P: Point
[src]
fn scale_by(&mut self, s: &P::Vect)
Scales each vertex of this mesh.
Trait Implementations
impl<P: Clone + Point> Clone for Polyline<P> where P::Vect: Clone
[src]
fn clone(&self) -> Polyline<P>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more