Type Definition collision::Ray2
[−]
[src]
type Ray2<S> = Ray<S, Point2<S>, Vector2<S>>;
2D ray
Trait Implementations
impl<S> Discrete<Ray2<S>> for Circle<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn intersects(&self, r: &Ray2<S>) -> bool
[src]
Intersection test
impl<S> Continuous<Ray2<S>> for Circle<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Result = Point2<S>
Result returned by the intersection test
fn intersection(&self, r: &Ray2<S>) -> Option<Point2<S>>
[src]
Intersection test
impl<S> Discrete<Ray2<S>> for ConvexPolygon<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn intersects(&self, ray: &Ray2<S>) -> bool
[src]
Ray must be in object space
impl<S> Continuous<Ray2<S>> for ConvexPolygon<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Result = Point2<S>
Result returned by the intersection test
fn intersection(&self, ray: &Ray2<S>) -> Option<Point2<S>>
[src]
Ray must be in object space
impl<S> DiscreteTransformed<Ray2<S>> for Primitive2<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Point = Point2<S>
Point type for transformation of self
fn intersects_transformed<T>(&self, ray: &Ray2<S>, transform: &T) -> bool where
T: Transform<Self::Point>,
[src]
T: Transform<Self::Point>,
Intersection test for transformed self
impl<S> ContinuousTransformed<Ray2<S>> for Primitive2<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Point = Point2<S>
Point type for transformation of self
type Result = Point2<S>
Result of intersection test
fn intersection_transformed<T>(
&self,
ray: &Ray2<S>,
transform: &T
) -> Option<Point2<S>> where
T: Transform<Point2<S>>,
[src]
&self,
ray: &Ray2<S>,
transform: &T
) -> Option<Point2<S>> where
T: Transform<Point2<S>>,
Intersection test for transformed self
impl<S> Discrete<Ray2<S>> for Rectangle<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn intersects(&self, ray: &Ray2<S>) -> bool
[src]
Ray must be in object space of the rectangle
impl<S> Continuous<Ray2<S>> for Rectangle<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Result = Point2<S>
Result returned by the intersection test
fn intersection(&self, ray: &Ray2<S>) -> Option<Point2<S>>
[src]
Ray must be in object space of the rectangle
impl<S> Discrete<Ray2<S>> for Square<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn intersects(&self, ray: &Ray2<S>) -> bool
[src]
Ray must be in object space of the rectangle
impl<S> Continuous<Ray2<S>> for Square<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Result = Point2<S>
Result returned by the intersection test
fn intersection(&self, ray: &Ray2<S>) -> Option<Point2<S>>
[src]
Ray must be in object space of the rectangle
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
impl<S: BaseFloat> Continuous<Aabb2<S>> for Ray2<S>
[src]
type Result = Point2<S>
Result returned by the intersection test
fn intersection(&self, aabb: &Aabb2<S>) -> Option<Point2<S>>
[src]
Intersection test
impl<S: BaseFloat> Continuous<Ray2<S>> for Aabb2<S>
[src]
type Result = Point2<S>
Result returned by the intersection test
fn intersection(&self, ray: &Ray2<S>) -> Option<Point2<S>>
[src]
Intersection test
impl<S: BaseFloat> Discrete<Aabb2<S>> for Ray2<S>
[src]
fn intersects(&self, aabb: &Aabb2<S>) -> bool
[src]
Intersection test
impl<S: BaseFloat> Discrete<Ray2<S>> for Aabb2<S>
[src]
fn intersects(&self, ray: &Ray2<S>) -> bool
[src]
Intersection test