Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | Related Pages

VLCollider Class Reference

#include <Collider.h>

Inheritance diagram for VLCollider:

Collider List of all members.

Public Member Functions

 VLCollider (double, double, double)
bool collide (BBCollider *bbc)
bool collide (SRCollider *src)
bool collide (VLCollider *src)
bool collide (VLGroupCollider *vlgc)
virtual double xCollision ()
virtual double yCollision ()
 ~VLCollider ()

Public Attributes

double x
double y1
double y2

Protected Member Functions

int getId ()

Detailed Description

Vertical Line collider : This can bound a stem vertical line


Constructor & Destructor Documentation

VLCollider::VLCollider double  px1,
double  py1,
double  py2
 

The condition for the construction of a Vertical Line Collider is py1<py2 If those conditions are not met then a correction is applied.

Parameters:
px1 
py1 
py2 

VLCollider::~VLCollider  ) 
 

Destructor of a Vl collider


Member Function Documentation

bool VLCollider::collide VLGroupCollider vlgc  )  [virtual]
 

Returns:
true if the VL collide with the VLgroup false otherwhise

Implements Collider.

bool VLCollider::collide VLCollider bb  )  [virtual]
 

Returns:
true if the bounding box collide the segment regression
Parameters:
bb the bb regression

Implements Collider.

bool VLCollider::collide SRCollider sr  )  [virtual]
 

Returns:
true if the vl reg collide the segment regression
Parameters:
sr the sr

Implements Collider.

bool VLCollider::collide BBCollider bb  )  [virtual]
 

Returns:
true if the bounding box collide the segment regression
Parameters:
bb the bb regression

Implements Collider.

double VLCollider::xCollision  )  [virtual]
 

Returns:
the x coord a a collision

Reimplemented from Collider.

double VLCollider::yCollision  )  [virtual]
 

Returns:
the y coord a collision

Reimplemented from Collider.


The documentation for this class was generated from the following files:
Generated on Tue Jun 1 21:13:37 2004 for Alternate Take by doxygen 1.3.6