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

ArLine Class Reference

#include <ariaUtil.h>

List of all members.


Detailed Description

Represents geometry of a line in two-dimensional space.

Note this the theoretical line, i.e. it goes infinitely. For a line segment with endpoints, use ArLineSegment.

See also:
ArLineSegment

Definition at line 884 of file ariaUtil.h.

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


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 914 of file ariaUtil.h.


The documentation for this class was generated from the following file:
Generated on Tue Feb 20 10:51:43 2007 for Aria by  doxygen 1.4.0