In file include/csgeom/math3d.h:

## class csIntersect3

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

### Public Methods

  static bool | Plane ( const csVector3& u, const csVector3& v, const csPlane& p, csVector3& isect, float& dist) Intersect a 3D segment with a plane
  static void | Plane ( const csVector3& u, const csVector3& v, const csVector3& normal, const csVector3& a, csVector3& isect) Intersect a 3D segment with a plane
  static bool | Plane ( const csVector3& u, const csVector3& v, float A, float B, float C, float D, csVector3& isect, float& dist) Intersect a 3D segment with a plane
  static float | XFrustrum ( float A, const csVector3& u, const csVector3& v, csVector3& isect) Intersect a 3D segment with the frustrum plane Ax + z = 0
  static float | YFrustrum ( float B, const csVector3& u, const csVector3& v, csVector3& isect) Intersect a 3D segment with the frustrum plane By + z = 0
  static float | Z0Plane ( const csVector3& u, const csVector3& v, csVector3& isect) Intersect a 3D segment with the z = 0 plane
  static float | ZPlane (float zval, const csVector3& u, const csVector3& v, csVector3& isect) Intersect a 3D segment with the plane z = zval

## Documentation

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

`static void Plane( const csVector3& u, const csVector3& v, const csVector3& normal, const csVector3& a, csVector3& isect)`
  Intersect a 3D segment with a plane. Returns true if there is an intersection, with the intersection point returned in isect.

`static bool Plane( const csVector3& u, const csVector3& v, float A, float B, float C, float D, csVector3& isect, float& dist)`
  Intersect a 3D 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.

`static bool Plane( const csVector3& u, const csVector3& v, const csPlane& p, csVector3& isect, float& dist)`
  Intersect a 3D 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.

`static float Z0Plane( const csVector3& u, const csVector3& v, csVector3& isect)`
  Intersect a 3D segment with the z = 0 plane. Assumes that there is an intersection (fails if the segment is parallel to the plane), and returns the distance from u to the intersection point. The intersection point is returned in isect.

`static float ZPlane(float zval, const csVector3& u, const csVector3& v, csVector3& isect)`
  Intersect a 3D segment with the plane z = zval. Assumes that there is an intersection (fails if the segment is parallel to the plane), and returns the distance from u to the intersection point. The intersection point is returned in isect.

`static float XFrustrum( float A, const csVector3& u, const csVector3& v, csVector3& isect)`
  Intersect a 3D segment with the frustrum plane Ax + z = 0. Assumes an intersection, and returns the intersection point in isect.

`static float YFrustrum( float B, const csVector3& u, const csVector3& v, csVector3& isect)`
  Intersect a 3D segment with the frustrum plane By + z = 0. Assumes an intersection, and returns the intersection point 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