The Vector2d class defines a bi-dimensional vector container. Vector2d objects can be instantiated in the scripting environment.
More...
#include <math.h>
|
double | x |
| x value
|
|
double | y |
| y value
|
|
The Vector2d class defines a bi-dimensional vector container. Vector2d objects can be instantiated in the scripting environment.
Vector2d::Vector2d |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
double Vector2d::degreeAngle |
( |
| ) |
const |
|
slot |
Retrieve degree angle defined by Vector2d.
- Returns
- Degree value
double Vector2d::dot |
( |
const Vector2d |
v2 | ) |
const |
|
slot |
Calculate dot product between current Vector2d and specified Vector2d.
- Parameters
-
- Returns
- Dot product value
bool Vector2d::isEqual |
( |
const Vector2d |
v2 | ) |
const |
|
slot |
Test if the two vectors are equals.
- Parameters
-
- Returns
- Result of test
bool Vector2d::isNotEqual |
( |
const Vector2d |
v2 | ) |
const |
|
slot |
Test if the two vectors are not equals.
- Parameters
-
- Returns
- Result of test
bool Vector2d::isZero |
( |
| ) |
const |
|
slot |
Test if Vector2d is zero.
- Returns
- Result of test
double Vector2d::length |
( |
| ) |
const |
|
slot |
Retrieve length of Vector2d.
- Returns
- Length
double Vector2d::lengthSq |
( |
| ) |
const |
|
slot |
Retrieve square length of Vector2d.
- Returns
- Square length
double Vector2d::radianAngle |
( |
| ) |
const |
|
slot |
Retrieve radian angle defined by Vector2d.
- Returns
- Radian value
Vector2d& Vector2d::rotate |
( |
double |
rad | ) |
|
|
slot |
Rotate Vector2d counter-clockwise of specified radian angle.
- Parameters
-
- Returns
- Vector2d reference
The documentation for this class was generated from the following file: