Struct ncollide2d::procedural::Polyline [−][src]
pub struct Polyline<N: Real> { /* fields omitted */ }
Geometric description of a polyline.
Methods
impl<N: Real> Polyline<N>
[src]
impl<N: Real> Polyline<N>
pub fn new(
coords: Vec<Point<N>>,
normals: Option<Vec<Vector<N>>>
) -> Polyline<N>
[src]
pub fn new(
coords: Vec<Point<N>>,
normals: Option<Vec<Vector<N>>>
) -> Polyline<N>
Creates a new polyline.
impl<N: Real> Polyline<N>
[src]
impl<N: Real> Polyline<N>
pub fn unwrap(self) -> (Vec<Point<N>>, Option<Vec<Vector<N>>>)
[src]
pub fn unwrap(self) -> (Vec<Point<N>>, Option<Vec<Vector<N>>>)
Moves the polyline data out of it.
pub fn coords(&self) -> &[Point<N>]
[src]
pub fn coords(&self) -> &[Point<N>]
The coordinates of this polyline vertices.
pub fn coords_mut(&mut self) -> &mut [Point<N>]
[src]
pub fn coords_mut(&mut self) -> &mut [Point<N>]
The mutable coordinates of this polyline vertices.
pub fn normals(&self) -> Option<&[Vector<N>]>
[src]
pub fn normals(&self) -> Option<&[Vector<N>]>
The normals of this polyline vertices.
pub fn normals_mut(&mut self) -> Option<&mut [Vector<N>]>
[src]
pub fn normals_mut(&mut self) -> Option<&mut [Vector<N>]>
The mutable normals of this polyline vertices.
pub fn translate_by<T: Translation<Point<N>>>(&mut self, t: &T)
[src]
pub fn translate_by<T: Translation<Point<N>>>(&mut self, t: &T)
Translates each vertex of this polyline.
pub fn rotate_by<R: Rotation<Point<N>>>(&mut self, r: &R)
[src]
pub fn rotate_by<R: Rotation<Point<N>>>(&mut self, r: &R)
Rotates each vertex and normal of this polyline.
pub fn transform_by(&mut self, t: &Isometry<N>)
[src]
pub fn transform_by(&mut self, t: &Isometry<N>)
Transforms each vertex and rotates each normal of this polyline.
pub fn scale_by_scalar(&mut self, s: &N)
[src]
pub fn scale_by_scalar(&mut self, s: &N)
Scales each vertex of this polyline.
impl<N: Real> Polyline<N>
[src]
impl<N: Real> Polyline<N>