[][src]Struct parry2d::shape::Polyline

pub struct Polyline { /* fields omitted */ }

A polyline.

Implementations

impl Polyline[src]

pub fn bounding_sphere(&self, pos: &Isometry<Real>) -> BoundingSphere[src]

Computes the world-space bounding sphere of this polyline, transformed by pos.

pub fn local_bounding_sphere(&self) -> BoundingSphere[src]

Computes the local-space bounding sphere of this polyline.

impl Polyline[src]

pub fn new(vertices: Vec<Point<Real>>, indices: Option<Vec<[u32; 2]>>) -> Self[src]

Creates a new polyline from a vertex buffer and an index buffer.

pub fn aabb(&self, pos: &Isometry<Real>) -> AABB[src]

Compute the axis-aligned bounding box of this polyline.

pub fn local_aabb(&self) -> &AABB[src]

Gets the local axis-aligned bounding box of this polyline.

pub fn num_segments(&self) -> usize[src]

The number of segments forming this polyline.

pub fn segments(&self) -> impl Iterator<Item = Segment> + '_[src]

An iterator through all the segments of this mesh.

pub fn segment(&self, i: u32) -> Segment[src]

Get the i-th segment of this mesh.

pub fn segment_feature_to_polyline_feature(
    &self,
    segment: u32,
    _feature: FeatureId
) -> FeatureId
[src]

Transforms the feature-id of a segment to the feature-id of this polyline.

pub fn vertices(&self) -> &[Point<Real>][src]

The vertex buffer of this mesh.

pub fn indices(&self) -> &[[u32; 2]][src]

The index buffer of this mesh.

pub fn flat_indices(&self) -> &[u32][src]

A flat view of the index buffer of this mesh.

Trait Implementations

impl Clone for Polyline[src]

impl PointQuery for Polyline[src]

impl PointQueryWithLocation for Polyline[src]

type Location = (u32, SegmentPointLocation)

Additional shape-specific projection information Read more

impl RayCast for Polyline[src]

impl Shape for Polyline[src]

impl SimdCompositeShape for Polyline[src]

impl TypedSimdCompositeShape for Polyline[src]

type PartShape = Segment

type PartId = u32

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

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

impl<Src, Dst> LosslessTryInto<Dst> for Src where
    Dst: LosslessTryFrom<Src>, 
[src]

impl<Src, Dst> LossyInto<Dst> for Src where
    Dst: LossyFrom<Src>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,