Struct ncollide_geometry::shape::Segment [] [src]

pub struct Segment<P> { /* fields omitted */ }

A segment shape.

Methods

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

Creates a new segment from two points.

impl<P> Segment<P>
[src]

The first point of this segment.

The second point of this segment.

Trait Implementations

impl<P: PartialEq> PartialEq for Segment<P>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<P: Debug> Debug for Segment<P>
[src]

Formats the value using the given formatter.

impl<P: Clone> Clone for Segment<P>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<P: Encodable> Encodable for Segment<P>
[src]

Serialize a value using an Encoder.

impl<P: Decodable> Decodable for Segment<P>
[src]

Deserialize a value using a Decoder.

impl<P: Point> BaseMeshElement<Point2<usize>, P> for Segment<P>
[src]

Creates a new mesh element from a set of vertices and indices.

impl<P: Point, M: Isometry<P>> SupportMap<P, M> for Segment<P>
[src]

Evaluates the support function of the object. A support function is a function associating a vector to the shape point which maximizes their dot product. This does not include the margin of the object. Margins are shape-dependent. Use support_point to sample the complete shape. Read more

impl<P: Point, M: Isometry<P>> Shape<P, M> for Segment<P>
[src]

The AABB of self.

The bounding sphere of self.

The RayCast implementation of self.

The PointQuery implementation of self.

The support mapping of self if applicable.

Whether self uses a supportmapping-based representation.

The composite shape representation of self if applicable.

Whether self uses a composite shape-based representation.

impl<P: Point, M: Isometry<P>> HasBoundingVolume<M, AABB<P>> for Segment<P>
[src]

The bounding volume of self transformed by m.

impl<P: Point, M: Isometry<P>> HasBoundingVolume<M, BoundingSphere<P>> for Segment<P>
[src]

The bounding volume of self transformed by m.

impl<P, M> RayCast<P, M> for Segment<P> where
    P: Point,
    M: Isometry<P>, 
[src]

Computes the time of impact, and normal between this transformed shape and a ray.

Computes the time of impact between this transform shape and a ray.

Computes time of impact, normal, and texture coordinates (uv) between this transformed shape and a ray. Read more

Tests whether a ray intersects this transformed shape.

impl<P: Point, M: Isometry<P>> PointQuery<P, M> for Segment<P>
[src]

Projects a point on self transformed by m.

Computes the minimal distance between a point and self transformed by m.

Tests if the given point is inside of self transformed by m.

impl<P: Point, M: Isometry<P>> RichPointQuery<P, M> for Segment<P>
[src]

Additional shape-specific projection information Read more

Projects a point on self transformed by m.