Struct ncollide::procedural::Polyline
[−]
[src]
pub struct Polyline<P> where P: Point { /* fields omitted */ }
Geometric description of a polyline.
Methods
impl<P> Polyline<P> where P: Point
[src]
impl<P> Polyline<P> where P: Point
[src]
fn unwrap(self) -> (Vec<P>, Option<Vec<P::Vector>>)
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::Vector]>
The normals of this polyline vertices.
fn normals_mut(&mut self) -> Option<&mut [P::Vector]>
The mutable normals of this polyline vertices.
fn translate_by<T>(&mut self, t: &T) where T: Translation<P>
Translates each vertex of this polyline.
fn rotate_by<R>(&mut self, r: &R) where R: Rotation<P>
Rotates each vertex and normal of this polyline.
fn transform_by<T>(&mut self, t: &T) where T: Isometry<P>
Transforms each vertex and rotates each normal of this polyline.
fn scale_by_scalar(&mut self, s: &P::Real)
Scales each vertex of this polyline.