Struct ncollide_procedural::Polyline [] [src]

pub struct Polyline<P: Point> {
    pub coords: Vec<P>,
    pub normals: Option<Vec<P::Vect>>,
}

Shapeetric description of a polyline.

Fields

coords: Vec<P>

Coordinates of the polyline vertices.

normals: Option<Vec<P::Vect>>

Coordinates of the polyline normals.

Methods

impl<P: Point> Polyline<P>
[src]

fn new(coords: Vec<P>, normals: Option<Vec<P::Vect>>) -> Polyline<P>

Creates a new polyline.

impl<P: Point> Polyline<P>
[src]

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