AI_Line2 Class Reference
[Mathematics]
#include <AI_Line.h>
Detailed Description
a line in 2d spacePublic Member Functions | |
| AI_Line2 () | |
| AI_Line2 (const AI_Vector2 &v0, const AI_Vector2 &v1) | |
| AI_Line2 (const AI_Line2 &l) | |
| float | distance (const AI_Vector2 &p) | 
| float | distance (const AI_Vector2 &p, const float t0, const float t1) | 
| void | set (const AI_Vector2 &v0, const AI_Vector2 &v1) | 
| const AI_Vector2 & | start (void) const | 
| AI_Vector2 | end (void) const | 
| float | len (void) const | 
| AI_Vector2 | ipol (const float t) const | 
| bool | intersection (const AI_Line2 &other, float tol) const | 
| bool | intersection (const AI_Line2 &other, AI_Vector2 ¶ms, float tol) const | 
Public Attributes | |
| AI_Vector2 | b | 
| AI_Vector2 | m | 
Constructor & Destructor Documentation
| AI_Line2::AI_Line2 | ( | ) |  [inline] | 
        
| AI_Line2::AI_Line2 | ( | const AI_Vector2 & | v0, | |
| const AI_Vector2 & | v1 | |||
| ) |  [inline] | 
        
| AI_Line2::AI_Line2 | ( | const AI_Line2 & | l | ) |  [inline] | 
        
Member Function Documentation
| float AI_Line2::distance | ( | const AI_Vector2 & | p | ) |  [inline] | 
        
| float AI_Line2::distance | ( | const AI_Vector2 & | p, | |
| const float | t0, | |||
| const float | t1 | |||
| ) |  [inline] | 
        
| void AI_Line2::set | ( | const AI_Vector2 & | v0, | |
| const AI_Vector2 & | v1 | |||
| ) |  [inline] | 
        
| const AI_Vector2& AI_Line2::start | ( | void | ) |  const [inline] | 
        
| AI_Vector2 AI_Line2::end | ( | void | ) |  const [inline] | 
        
| float AI_Line2::len | ( | void | ) |  const [inline] | 
        
| AI_Vector2 AI_Line2::ipol | ( | const float | t | ) |  const [inline] | 
        
| bool AI_Line2::intersection | ( | const AI_Line2 & | other, | |
| float | tol | |||
| ) |  const [inline] | 
        
| bool AI_Line2::intersection | ( | const AI_Line2 & | other, | |
| AI_Vector2 & | params, | |||
| float | tol | |||
| ) |  const [inline] | 
        
Member Data Documentation
The documentation for this class was generated from the following file:
