[][src]Struct ncollide2d::procedural::Polyline

pub struct Polyline<N: RealField> { /* fields omitted */ }

Geometric description of a polyline.

Methods

impl<N: RealField> Polyline<N>[src]

pub fn new(
    coords: Vec<Point<N>>,
    normals: Option<Vec<Vector<N>>>
) -> Polyline<N>
[src]

Creates a new polyline.

impl<N: RealField> Polyline<N>[src]

pub fn unwrap(self) -> (Vec<Point<N>>, Option<Vec<Vector<N>>>)[src]

Moves the polyline data out of it.

pub fn coords(&self) -> &[Point<N>][src]

The coordinates of this polyline vertices.

pub fn coords_mut(&mut self) -> &mut [Point<N>][src]

The mutable coordinates of this polyline vertices.

pub fn normals(&self) -> Option<&[Vector<N>]>[src]

The normals of this polyline vertices.

pub fn normals_mut(&mut self) -> Option<&mut [Vector<N>]>[src]

The mutable normals of this polyline vertices.

pub fn translate_by<T: Translation<Point<N>>>(&mut self, t: &T)[src]

Translates each vertex of this polyline.

pub fn rotate_by<R: Rotation<Point<N>>>(&mut self, r: &R)[src]

Rotates each vertex and normal of this polyline.

pub fn transform_by(&mut self, t: &Isometry<N>)[src]

Transforms each vertex and rotates each normal of this polyline.

pub fn scale_by_scalar(&mut self, s: &N)[src]

Scales each vertex of this polyline.

impl<N: RealField> Polyline<N>[src]

pub fn scale_by(&mut self, s: &Vector<N>)[src]

Scales each vertex of this mesh.

Trait Implementations

impl<N: Clone + RealField> Clone for Polyline<N>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<N> Send for Polyline<N> where
    N: Scalar

impl<N> Sync for Polyline<N> where
    N: Scalar

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> Same for T

type Output = T

Should always be Self