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

ArLine Class Reference

This is the class for a line to do some geometric manipulation. More...

#include <ariaUtil.h>

List of all members.

Public Member Functions

 ArLine (double x1, double y1, double x2, double y2)
 Constructor with endpoints.
 ArLine (double a, double b, double c)
 Constructor with parameters.
const double getA (void) const
 Gets the A line parameter.
const double getB (void) const
 Gets the B line parameter.
const double getC (void) const
 Gets the C line parameter.
bool intersects (const ArLine *line, ArPose *pose)
 finds the intersection of this line with another line
void makeLinePerp (const ArPose *pose, ArLine *line) const
 Makes the given line perpendicular to this one though the given pose.
void newParameters (double a, double b, double c)
 Sets the line parameters (make it not a segment).
void newParametersFromEndpoints (double x1, double y1, double x2, double y2)
 Sets the line parameters from endpoints, but makes it not a segment.
virtual ~ArLine ()
 Destructor.

Protected Attributes

double myA
double myB
double myC


Detailed Description

This is the class for a line to do some geometric manipulation.

Note this the theoretical line, ie it goes infinitely, if you want what most people think of as a line (ie with endpoints) use ArLineSegment

Definition at line 795 of file ariaUtil.h.


Member Function Documentation

bool ArLine::intersects const ArLine line,
ArPose pose
[inline]
 

finds the intersection of this line with another line

Parameters:
line the line to check if it intersects with this line
pose if the lines intersect, the pose is set to the location
Returns:
true if they intersect, false if they do not

Definition at line 825 of file ariaUtil.h.

References getA(), getB(), and getC().

Referenced by ArActionTriangleDriveTo::findTriangle(), and ArLineSegment::intersects().


The documentation for this class was generated from the following file:
Generated on Wed Oct 19 12:56:49 2005 for Aria by  doxygen 1.4.0