[][src]Struct ncollide_procedural::Polyline

pub struct Polyline<P: Point> { /* fields omitted */ }

Geometric description of a polyline.

Methods

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

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

Creates a new polyline.

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

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

Moves the polyline data out of it.

pub fn coords(&self) -> &[P][src]

The coordinates of this polyline vertices.

pub fn coords_mut(&mut self) -> &mut [P][src]

The mutable coordinates of this polyline vertices.

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

The normals of this polyline vertices.

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

The mutable normals of this polyline vertices.

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

Translates each vertex of this polyline.

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

Rotates each vertex and normal of this polyline.

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

Transforms each vertex and rotates each normal of this polyline.

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

Scales each vertex of this polyline.

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

pub fn scale_by(&mut self, s: &P::Vector)[src]

Scales each vertex of this mesh.

Trait Implementations

impl<P: Clone + Point> Clone for Polyline<P> where
    P::Vector: Clone
[src]

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

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<P> Send for Polyline<P> where
    <P as Point>::Vector: Send

impl<P> Sync for Polyline<P> where
    <P as Point>::Vector: Sync

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

The resulting type after obtaining ownership.

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> Same for T

type Output = T

Should always be Self