[−][src]Struct ncollide_procedural::Polyline
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]
P: Point,
Trait Implementations
Auto Trait Implementations
impl<P> Send for Polyline<P> where
<P as Point>::Vector: Send,
<P as Point>::Vector: Send,
impl<P> Sync for Polyline<P> where
<P as Point>::Vector: Sync,
<P as Point>::Vector: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> Same for T
type Output = T
Should always be Self