In file include/csgeom/math2d.h:

## class csIntersect2

> Some functions to perform various intersection calculations with 2D line segments

### Public Methods

static bool Lines( const csVector2& a1, const csVector2& a2, const csVector2& b1, const csVector2& b2, csVector2& isect)
  Compute the intersection of 2D lines
static bool SegmentLine( const csVector2& a1, const csVector2& a2, const csVector2& b1, const csVector2& b2, csVector2& isect, float& dist)
  Compute the intersection of a 2D segment and a line
static bool Segments( const csVector2& a1, const csVector2& a2, const csVector2& b1, const csVector2& b2, csVector2& isect, float& dist)
  Compute the intersection of the 2D segments

## Documentation

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

`static bool Segments( const csVector2& a1, const csVector2& a2, const csVector2& b1, const csVector2& b2, csVector2& isect, float& 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.

`static bool SegmentLine( const csVector2& a1, const csVector2& a2, const csVector2& b1, const csVector2& b2, csVector2& isect, float& dist)`
  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.

`static bool Lines( const csVector2& a1, const csVector2& a2, const csVector2& b1, const csVector2& b2, csVector2& isect)`
  Compute the intersection of 2D lines. Return true if they intersect, with the intersection point returned in isect.

This class has no child classes.

alphabetic index hierarchy of classes

this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de