Type Definition collision::Line2
[−]
[src]
type Line2<S> = Line<S, Vector2<S>, Point2<S>>;
2D directed line segment
Trait Implementations
impl<S> Primitive for Line2<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Point = Point2<S>
Point type
fn support_point<T>(&self, direction: &Vector2<S>, transform: &T) -> Self::Point where
T: Transform<Self::Point>,
[src]
T: Transform<Self::Point>,
Get the support point on the shape in a given direction. Read more
impl<S> ComputeBound<Aabb2<S>> for Line2<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn compute_bound(&self) -> Aabb2<S>
[src]
Compute the bounding volume
impl<S> From<Line2<S>> for Primitive2<S>
[src]
fn from(line: Line2<S>) -> Primitive2<S>
[src]
Performs the conversion.
impl<S: BaseFloat> Discrete<Ray2<S>> for Line2<S>
[src]
fn intersects(&self, ray: &Ray2<S>) -> bool
[src]
Intersection test
impl<S: BaseFloat> Continuous<Ray2<S>> for Line2<S>
[src]
type Result = Point2<S>
Result returned by the intersection test
fn intersection(&self, ray: &Ray2<S>) -> Option<Self::Result>
[src]
Intersection test
impl<S: BaseFloat> Continuous<Line2<S>> for Ray2<S>
[src]
Determines if an intersection between a ray and a line segment is found.
type Result = Point2<S>
Result returned by the intersection test
fn intersection(&self, line: &Line2<S>) -> Option<Point2<S>>
[src]
Intersection test