![]() |
Public API Reference |
![]() |
Some functions to perform various intersection calculations with 2D line segments. More...
#include <csgeom/math2d.h>
Static Public Member Functions | |
static bool | LineLine (const csSegment2 &a, const csSegment2 &b, csVector2 &isect) |
Compute the intersection of 2D lines. | |
static bool | PlanePlane (const csPlane2 &p1, const csPlane2 &p2, csVector2 &isect) |
Intersect 2 planes to get the point that is part of all two planes. | |
static bool | PlanePolygon (const csPlane2 &plane, csPoly2D *poly, csSegment2 &segment) |
Intersect a plane with a 2D polygon and return the line segment corresponding with this intersection. | |
static bool | SegmentBox (csSegment2 &segment, const csBox2 &box) |
Intersect segment with an axis aligned bounding box. | |
static bool | SegmentLine (const csSegment2 &a, const csSegment2 &b, csVector2 &isect, float &dist) |
Compute the intersection of a 2D segment and a line. | |
static bool | SegmentPlane (const csVector2 &u, const csVector2 &v, const csPlane2 &p, csVector2 &isect, float &dist) |
Intersect a 2D segment with a plane. | |
static bool | SegmentPlane (const csSegment2 &uv, const csPlane2 &p, csVector2 &isect, float &dist) |
Intersect a 2D segment with a plane. | |
static void | SegmentPlaneNoTest (const csVector2 &u, const csVector2 &v, const csPlane2 &p, csVector2 &isect, float &dist) |
Return the intersection point. | |
static void | SegmentPlaneNoTest (const csSegment2 &uv, const csPlane2 &p, csVector2 &isect, float &dist) |
Return the intersection point. | |
static bool | SegmentSegment (const csSegment2 &a, const csSegment2 &b, csVector2 &isect, float &dist) |
Compute the intersection of the 2D segments. |
Some functions to perform various intersection calculations with 2D line segments.
This is a static class and contains only static member functions.
static bool csIntersect2::LineLine | ( | const csSegment2 & | a, |
const csSegment2 & | b, | ||
csVector2 & | isect | ||
) | [static] |
Compute the intersection of 2D lines.
static bool csIntersect2::PlanePlane | ( | const csPlane2 & | p1, |
const csPlane2 & | p2, | ||
csVector2 & | isect | ||
) | [static] |
Intersect 2 planes to get the point that is part of all two planes.
static bool csIntersect2::PlanePolygon | ( | const csPlane2 & | plane, |
csPoly2D * | poly, | ||
csSegment2 & | segment | ||
) | [static] |
Intersect a plane with a 2D polygon and return the line segment corresponding with this intersection.
static bool csIntersect2::SegmentBox | ( | csSegment2 & | segment, |
const csBox2 & | box | ||
) | [static] |
Intersect segment with an axis aligned bounding box.
static bool csIntersect2::SegmentLine | ( | const csSegment2 & | a, |
const csSegment2 & | b, | ||
csVector2 & | isect, | ||
float & | dist | ||
) | [static] |
Compute the intersection of a 2D segment and a line.
static bool csIntersect2::SegmentPlane | ( | const csVector2 & | u, |
const csVector2 & | v, | ||
const csPlane2 & | p, | ||
csVector2 & | isect, | ||
float & | dist | ||
) | [static] |
Intersect a 2D segment with a plane.
static bool csIntersect2::SegmentPlane | ( | const csSegment2 & | uv, |
const csPlane2 & | p, | ||
csVector2 & | isect, | ||
float & | dist | ||
) | [inline, static] |
Intersect a 2D segment with a plane.
static void csIntersect2::SegmentPlaneNoTest | ( | const csVector2 & | u, |
const csVector2 & | v, | ||
const csPlane2 & | p, | ||
csVector2 & | isect, | ||
float & | dist | ||
) | [inline, static] |
static void csIntersect2::SegmentPlaneNoTest | ( | const csSegment2 & | uv, |
const csPlane2 & | p, | ||
csVector2 & | isect, | ||
float & | dist | ||
) | [inline, static] |
static bool csIntersect2::SegmentSegment | ( | const csSegment2 & | a, |
const csSegment2 & | b, | ||
csVector2 & | isect, | ||
float & | dist | ||
) | [static] |
Compute the intersection of the 2D segments.