csIntersect2 Class Reference
[Geometry utilities]
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 | 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 csSegment2 &uv, const csPlane2 &p, csVector2 &isect, float &dist) |
Intersect a 2D segment with a plane. | |
static bool | SegmentPlane (const csVector2 &u, const csVector2 &v, const csPlane2 &p, csVector2 &isect, float &dist) |
Intersect a 2D segment with a plane. | |
static void | SegmentPlaneNoTest (const csSegment2 &uv, const csPlane2 &p, csVector2 &isect, float &dist) |
Return the intersection point. | |
static void | SegmentPlaneNoTest (const csVector2 &u, const csVector2 &v, 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. |
Detailed Description
Some functions to perform various intersection calculations with 2D line segments.This is a static class and contains only static member functions.
Definition at line 157 of file math2d.h.
Member Function Documentation
|
Compute the intersection of 2D lines.
|
|
Intersect 2 planes to get the point that is part of all two planes.
|
|
Intersect a plane with a 2D polygon and return the line segment corresponding with this intersection.
|
|
Compute the intersection of a 2D segment and a line.
|
|
Intersect a 2D segment with a plane.
Definition at line 224 of file math2d.h. References csSegment2::End(), and csSegment2::Start(). |
|
Intersect a 2D segment with a plane.
|
|
Return the intersection point. This version does not test if there really is an intersection. It just assumes there is one. Definition at line 251 of file math2d.h. References csSegment2::End(), and csSegment2::Start(). |
|
Return the intersection point. This version does not test if there really is an intersection. It just assumes there is one. Definition at line 237 of file math2d.h. References csPlane2::CC, csPlane2::norm, csVector2::x, and csVector2::y. |
|
Compute the intersection of the 2D segments.
|
The documentation for this class was generated from the following file:
- csgeom/math2d.h
Generated for Crystal Space by doxygen 1.4.6