- Main Page
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

# VectorMath Class Reference

`#include <VectorMath.h>`

List of all members.

## Public Member Functions
| VectorMath ()
virtual | ~VectorMath ()
int | TestIntersionPlane (const Plane &plane, const TVector &position, const TVector &direction, double &lamda, TVector &pNormal)
double | GetDistanceFromUsecka (const TVector &usecka_bod1, const TVector &usecka_bod2, const TVector &car_position, const TVector &car_direction, TVector &return_cross_point)
bool | pointInPolygon (TVector point, TVector *vertices, int numVertices)
## Static Public Member Functions
static int | randomIntInRange (int lowest, int highest)
## Classes
struct | Plane

## Detailed Description

class for tracing support, based on TVector and tray

## Constructor & Destructor Documentation

VectorMath::VectorMath | ( |  | ) |

VectorMath::~VectorMath | ( |  | ) | `[virtual]`

## Member Function Documentation

double VectorMath::GetDistanceFromUsecka | ( | const TVector & | usecka_bod1,
|  | const TVector & | usecka_bod2,
|  | const TVector & | car_position,
|  | const TVector & | car_direction,
|  | TVector & | return_cross_point |
| ) |  |  | `[inline]`

tells us, how far is usecka from my point in direction of speed of this point

bool VectorMath::pointInPolygon | ( | TVector | point,
|  | TVector * | vertices,
|  | int | numVertices |
| ) |  |  | `[inline]`

static int VectorMath::randomIntInRange | ( | int | lowest,
|  | int | highest |
| ) |  |  | `[inline, static]`

int VectorMath::TestIntersionPlane | ( | const Plane & | plane,
|  | const TVector & | position,
|  | const TVector & | direction,
|  | double & | lamda,
|  | TVector & | pNormal |
| ) |  |  | `[inline]`

core tracing function gets distance from plane very efficient way

The documentation for this class was generated from the following files:

- src/vectorMath/VectorMath.h
- src/vectorMath/VectorMath.cpp