Main Page Class Hierarchy Compound List File List Compound Members
csIntersect2 Class Reference Some functions to perform various intersection calculations with 2D line segments.
More...
`#include <`math2d.h >

List of all members.

Static Public Methods
bool IntersectPolygon (const csPlane2 &plane, csPoly2D *poly, csSegment2 &segment)
Intersect a plane with a 2D polygon and return the line segment corresponding with this intersection. More...
bool Segments (const csSegment2 &a, const csSegment2 &b, csVector2 &isect, float &dist)
Compute the intersection of the 2D segments. More...
bool SegmentLine (const csSegment2 &a, const csSegment2 &b, csVector2 &isect, float &dist)
Compute the intersection of a 2D segment and a line. More...
bool Lines (const csSegment2 &a, const csSegment2 &b, csVector2 &isect)
Compute the intersection of 2D lines. More...
bool Plane (const csVector2 &u, const csVector2 &v, const csPlane2 &p, csVector2 &isect, float &dist)
Intersect a 2D segment with a plane. More...
bool Plane (const csSegment2 &uv, const csPlane2 &p, csVector2 &isect, float &dist)
Intersect a 2D segment with a plane. More...
void PlaneNoTest (const csVector2 &u, const csVector2 &v, const csPlane2 &p, csVector2 &isect, float &dist)
Return the intersection point. More...
void PlaneNoTest (const csSegment2 &uv, const csPlane2 &p, csVector2 &isect, float &dist)
Return the intersection point. More...
bool Planes (const csPlane2 &p1, const csPlane2 &p2, csVector2 &isect)
Intersect 2 planes to get the point that is part of all two planes. More...

Detailed Description
Some functions to perform various intersection calculations with 2D line segments.
This is a static class and contains only static member functions.

Member Function Documentation

Intersect a plane with a 2D polygon and return the line segment corresponding with this intersection.

Returns true if there is an intersection. If false then 'segment' will not be valid.

Compute the intersection of 2D lines.

Return true if they intersect, with the intersection point returned in isect.

Intersect a 2D segment with a plane.

Returns true if there is an intersection, with the intersection point returned in isect. The distance from u to the intersection point is returned in dist. The distance that is returned is a normalized distance with respect to the given input vector. i.e. a distance of 0.5 means that the intersection point is halfway u and v.

Intersect a 2D segment with a plane.

Returns true if there is an intersection, with the intersection point returned in isect. The distance from u to the intersection point is returned in dist. The distance that is returned is a normalized distance with respect to the given input vector. i.e. a distance of 0.5 means that the intersection point is halfway u and v.

Return the intersection point.

This version does not test if there really is an intersection. It just assumes there is one.

Return the intersection point.

This version does not test if there really is an intersection. It just assumes there is one.

Intersect 2 planes to get the point that is part of all two planes.

Returns true, if there is a single point that fits. If the planes are parallel, then it will return false.

Compute the intersection of a 2D segment and a line.

Return true if they intersect, with the intersection point returned in isect, and the distance from a1 of the intersection in dist.

Compute the intersection of the 2D segments.

Return true if they intersect, with the intersection point returned in isect, and the distance from a1 of the intersection in dist.

The documentation for this class was generated from the following file:
Generated for Crystal Space by
doxygen
1.2.5 written by
Dimitri van Heesch ,
©1997-2000