AI_Plane Class Reference
[Mathematics]

#include <AI_Plane.h>

List of all members.


Detailed Description

A AI_Plane in 3d space.

(C) 2004 RadonLabs GmbH

Public Member Functions

 AI_Plane ()
 default constructor
 AI_Plane (float A, float B, float C, float D)
 constructor 1
 AI_Plane (const AI_Plane &p)
 constructor 2
 AI_Plane (const AI_Vector3 &v0, const AI_Vector3 &v1, const AI_Vector3 &v2)
 constructor 3
void set (float A, float B, float C, float D)
 set contents
void set (const AI_Vector3 &v0, const AI_Vector3 &v1, const AI_Vector3 &v2)
 construct AI_Plane from 3 vectors
float distance (const AI_Vector3 &v) const
 compute distance of point to AI_Plane
AI_Vector3 normal () const
 get AI_Plane normal
bool intersect (const AI_Line3 &l, float &t) const
 get intersecting t of line with one sided AI_Plane
bool intersect (const AI_Plane &p, AI_Line3 &l) const
 get AI_Plane/AI_Plane intersection

Public Attributes

float a
float b
float c
float d


Constructor & Destructor Documentation

AI_Plane::AI_Plane (  )  [inline]

default constructor

AI_Plane::AI_Plane ( float  A,
float  B,
float  C,
float  D 
) [inline]

constructor 1

AI_Plane::AI_Plane ( const AI_Plane p  )  [inline]

constructor 2

AI_Plane::AI_Plane ( const AI_Vector3 v0,
const AI_Vector3 v1,
const AI_Vector3 v2 
) [inline]

constructor 3


Member Function Documentation

void AI_Plane::set ( float  A,
float  B,
float  C,
float  D 
) [inline]

set contents

void AI_Plane::set ( const AI_Vector3 v0,
const AI_Vector3 v1,
const AI_Vector3 v2 
) [inline]

construct AI_Plane from 3 vectors

Constructs a AI_Plane from 3 position vectors.

float AI_Plane::distance ( const AI_Vector3 v  )  const [inline]

compute distance of point to AI_Plane

Computes the distance of a point to the AI_Plane. Return 0.0 if the point is on the AI_Plane.

AI_Vector3 AI_Plane::normal (  )  const [inline]

get AI_Plane normal

Returns the AI_Plane normal.

bool AI_Plane::intersect ( const AI_Line3 l,
float &  t 
) const [inline]

get intersecting t of line with one sided AI_Plane

Get intersecting t of line with one-sided AI_Plane. Returns false if the line is parallel to the AI_Plane.

bool AI_Plane::intersect ( const AI_Plane p,
AI_Line3 l 
) const [inline]

get AI_Plane/AI_Plane intersection

Get AI_Plane/AI_Plane intersection. Return false if planes are parallel.


Member Data Documentation

float AI_Plane::a

float AI_Plane::b

float AI_Plane::c

float AI_Plane::d


The documentation for this class was generated from the following file: