Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Geometry Class Reference

#include <Geometry.h>

List of all members.

Static Public Methods

double getLengthGeomSeries (double dFirst, double dRatio, double dSum)
double getSumGeomSeries (double dFirst, double dRatio, double dLen)
double getSumInfGeomSeries (double dFirst, double dRatio)
double getFirstGeomSeries (double dSum, double dRatio, double dLen)
double getFirstInfGeomSeries (double dSum, double dRatio)
int abcFormula (double a, double b, double c, double *s1, double *s2)


Detailed Description

This class contains several static methods dealing with geometry.

Definition at line 207 of file Geometry.h.


Member Function Documentation

int Geometry::abcFormula double    a,
double    b,
double    c,
double *    s1,
double *    s2
[static]
 

This method performs the abc formula (Pythagoras' Theorem) on the given parameters and puts the result in *s1 en *s2. It returns the number of found coordinates.

Parameters:
a  a parameter in abc formula
b  b parameter in abc formula
c  c parameter in abc formula
s1  first result of abc formula
s2  second result of abc formula
Returns:
number of found x-coordinates

Definition at line 1121 of file Geometry.cpp.

References EPSILON.

Referenced by Line::getCircleIntersectionPoints().

double Geometry::getFirstGeomSeries double    dSum,
double    dRatio,
double    dLength
[static]
 

A geometric series is one in which there is a constant ratio between each element and the one preceding it. This method determines the first element of a geometric series given its element, the ratio and the number of steps in the series Normally: s = a + ar + ar^2 + ... + ar^n Now: dSum = dFirst + dFirst*dRatio + ... + dFirst*dRatio^dSteps

Parameters:
dSum  sum of the series
dRatio  ratio with which the the first term is multiplied
dSum  the number of steps to be taken into account
Returns:
the first element (a) of a serie

Definition at line 1086 of file Geometry.cpp.

Referenced by WorldModel::getFirstSpeedFromDist().

double Geometry::getFirstInfGeomSeries double    dSum,
double    dRatio
[static]
 

A geometric series is one in which there is a constant ratio between each element and the one preceding it. This method determines the first element of an infinite geometric series given its first element and the constant ratio between the elements. Note that such an infinite series will only converge when 0<r<1. Normally: s = a + ar + ar^2 + ar^3 + .... Now: dSum = dFirst + dFirst*dRatio + dFirst*dRatio^2...

Parameters:
dSum  sum of the series
dRatio  ratio with which the the first term is multiplied
Returns:
the first term of the series

Definition at line 1103 of file Geometry.cpp.

Referenced by WorldModel::getKickSpeedToTravel().

double Geometry::getLengthGeomSeries double    dFirst,
double    dRatio,
double    dSum
[static]
 

A geometric series is one in which there is a constant ratio between each element and the one preceding it. This method determines the length of a geometric series given its first element, the sum of the elements in the series and the constant ratio between the elements. Normally: s = a + ar + ar^2 + ... + ar^n Now: dSum = dFirst + dFirst*dRatio + dFirst*dRatio^2 + .. + dFist*dRatio^n

Parameters:
dFirst  first term of the series
dRatio  ratio with which the the first term is multiplied
dSum  the total sum of all the serie
Returns:
the length(n in above example) of the series

Definition at line 1026 of file Geometry.cpp.

Referenced by WorldModel::getKickSpeedToTravel().

double Geometry::getSumGeomSeries double    dFirst,
double    dRatio,
double    dLength
[static]
 

A geometric series is one in which there is a constant ratio between each element and the one preceding it. This method determines the sum of a geometric series given its first element, the ratio and the number of steps in the series Normally: s = a + ar + ar^2 + ... + ar^n Now: dSum = dFirst + dFirst*dRatio + ... + dFirst*dRatio^dSteps

Parameters:
dFirst  first term of the series
dRatio  ratio with which the the first term is multiplied
dSum  the number of steps to be taken into account
Returns:
the sum of the series

Definition at line 1050 of file Geometry.cpp.

Referenced by WorldModel::predictPosAfterNrCycles().

double Geometry::getSumInfGeomSeries double    dFirst,
double    dRatio
[static]
 

A geometric series is one in which there is a constant ratio between each element and the one preceding it. This method determines the sum of an infinite geometric series given its first element and the constant ratio between the elements. Note that such an infinite series will only converge when 0<r<1. Normally: s = a + ar + ar^2 + ar^3 + .... Now: dSum = dFirst + dFirst*dRatio + dFirst*dRatio^2...

Parameters:
dFirst  first term of the series
dRatio  ratio with which the the first term is multiplied
Returns:
the sum of the series

Definition at line 1067 of file Geometry.cpp.

Referenced by BasicPlayer::getActiveInterceptionPointBall(), BasicPlayer::getInterceptionPointBall(), and WorldModel::predictFinalAgentPos().


The documentation for this class was generated from the following files:
Generated on Fri Nov 7 11:46:03 2003 for UvA Trilearn 2003 Base Code by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001