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

Geometry::Line Struct Reference

Defines a line by two vectors. More...

#include <Geometry.h>

Collaboration diagram for Geometry::Line:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Line ()
 Line (Vector2< double > base, Vector2< double > direction)
 Line (Vector2< int > base, Vector2< double > direction)
 Line (Vector2< int > base, Vector2< int > direction)
 Line (double baseX, double baseY, double directionX, double directionY)
void normalizeDirection ()

Public Attributes

Vector2< double > base
Vector2< double > direction

Detailed Description

Defines a line by two vectors.

Definition at line 39 of file Geometry.h.


Constructor & Destructor Documentation

Geometry::Line::Line  )  [inline]
 

Definition at line 44 of file Geometry.h.

Geometry::Line::Line Vector2< double >  base,
Vector2< double >  direction
[inline]
 

Definition at line 45 of file Geometry.h.

References direction.

Geometry::Line::Line Vector2< int >  base,
Vector2< double >  direction
[inline]
 

Definition at line 50 of file Geometry.h.

References direction, Vector2< V >::x, and Vector2< V >::y.

Geometry::Line::Line Vector2< int >  base,
Vector2< int >  direction
[inline]
 

Definition at line 57 of file Geometry.h.

References direction, Vector2< double >::x, Vector2< V >::x, Vector2< double >::y, and Vector2< V >::y.

Geometry::Line::Line double  baseX,
double  baseY,
double  directionX,
double  directionY
[inline]
 

Definition at line 66 of file Geometry.h.

References base, direction, Vector2< double >::x, and Vector2< double >::y.


Member Function Documentation

void Geometry::Line::normalizeDirection  ) 
 

Definition at line 36 of file Geometry.cpp.

References direction, and sqr.

Referenced by Geometry::calculateHorizon(), and GT2004ImageProcessor::execute().


Member Data Documentation

Vector2<double> Geometry::Line::base
 

Definition at line 41 of file Geometry.h.

Referenced by Geometry::calculateHorizon(), GoalRecognizer::calculateScanLinesParallelToHorizon(), GT2004GoalRecognizer::calculateScanLinesParallelToHorizon(), Geometry::clipLineWithQuadrangle(), RBridgeSpecialist::createBBox(), BoxSpecialist::createBBox(), GT2004GoalRecognizer::execute(), GT2004BeaconDetector::execute(), RBridgeSpecialist::executePostProcessing(), BoxSpecialist::executePostProcessing(), RBridgeSpecialist::findBridgeMark(), ObstaclesModel::getDistanceInCorridor(), RasterSpecialist::getDistanceToLine(), GT2004EdgeSpecialist::getEdgesPercept(), GoalRecognizer::getGoalPercept(), Geometry::getIntersectionPointsOfLineAndRectangle(), RasterImageProcessor::init(), Line(), Geometry::SetOfPoints< V, maxNumberOfPoints >::linearRegression(), makeLine(), BoxSpecialist::mergeBoxes(), RDefaultStrategy::postScan(), RDefaultStrategy::preScan(), GT2004ImageProcessor::scanColumns(), GT2004BeaconDetector::scanForBeaconEdges(), GT2004ImageProcessor::scanRows(), GT2004FlagSpecialist::searchFlags(), and BoxSpecialist::searchGoal().

Vector2<double> Geometry::Line::direction
 

Definition at line 42 of file Geometry.h.

Referenced by REnemySpecialist::calculateFarestPoint(), Geometry::calculateHorizon(), GoalRecognizer::calculateScanLinesParallelToHorizon(), GT2004GoalRecognizer::calculateScanLinesParallelToHorizon(), Geometry::clipLineWithQuadrangle(), GT2004BeaconDetector::clusterPinkBeaconParts(), RBridgeSpecialist::createBBox(), BoxSpecialist::createBBox(), GT2004ImageProcessor::execute(), GT2004GoalRecognizer::execute(), GT2004BeaconDetector::execute(), RBridgeSpecialist::executePostProcessing(), BoxSpecialist::executePostProcessing(), RBridgeSpecialist::findBridgeMark(), BoxSpecialist::fitLandmark(), ObstaclesModel::getDistanceInCorridor(), RasterSpecialist::getDistanceToLine(), GT2004EdgeSpecialist::getEdgesPercept(), GoalRecognizer::getGoalPercept(), Geometry::getIntersectionPointsOfLineAndRectangle(), RBridgeSpecialist::getPosition(), RasterImageProcessor::init(), Geometry::SetOfPoints< V, maxNumberOfPoints >::linearRegression(), makeLine(), BoxSpecialist::mergeBoxes(), RDefaultStrategy::postScan(), RDefaultStrategy::preScan(), GT2004ImageProcessor::scanColumns(), GT2004BeaconDetector::scanForBeaconEdges(), GT2004ImageProcessor::scanRows(), GT2004FlagSpecialist::searchFlags(), BoxSpecialist::searchGoal(), BoxSpecialist::searchLandmark(), FieldDimensions::vectorToBorder(), and FieldDimensions::vectorToBorderIncludingGoals().


The documentation for this struct was generated from the following files:
Generated on Thu Sep 23 20:06:30 2004 for GT2004 by doxygen 1.3.6