Vector 2D class.
More...
double CRM32Pro_DataTypes::sV2D::Distance |
( |
const sV2D & |
v2 | ) |
|
|
inline |
Distance between this vector and the one passed as a parameter.
- Parameters
-
- Returns
- double with the distance between both vectors
double CRM32Pro_DataTypes::sV2D::Dot |
( |
sV2D & |
v2 | ) |
|
|
inline |
Calculates the dot product.
- Parameters
-
- Returns
- double with the Dot product
sV2D CRM32Pro_DataTypes::sV2D::GetPerpendicular |
( |
| ) |
|
|
inline |
Get a perpendicular vector.
- Returns
- sV2D perpendicular to this one
sV2D CRM32Pro_DataTypes::sV2D::GetReflect |
( |
sV2D & |
norm | ) |
|
|
inline |
- Parameters
-
norm | normalized vector (the wall?) |
- Returns
- sV2D with the reflected vector
double CRM32Pro_DataTypes::sV2D::Length |
( |
| ) |
|
|
inline |
Length of the 2D vector.
- Returns
- double with the length of the vector
int CRM32Pro_DataTypes::sV2D::Sign |
( |
sV2D & |
v2 | ) |
|
|
inline |
Calculates the sign.
- Parameters
-
- Returns
- positive integer if v2 is clockwise of us, minus if anticlockwise
void CRM32Pro_DataTypes::sV2D::Truncate |
( |
double |
max | ) |
|
|
inline |
Adjusts x and y so that the length of the vector does not exceed max.
- Parameters
-
max | double with the maximum length |
The documentation for this class was generated from the following file: