The Vector3d class defines a three-dimensional vector container. Vector3d objects can be instantiated in the scripting environment.
More...
#include <math.h>
|
double | x |
| x value
|
|
double | y |
| y value
|
|
double | z |
| z value
|
|
The Vector3d class defines a three-dimensional vector container. Vector3d objects can be instantiated in the scripting environment.
Vector3d::Vector3d |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
Create a new Vector3d.
- Parameters
-
x | X value |
y | Y value |
z | Z value |
double Vector3d::dot |
( |
const Vector3d |
v2 | ) |
const |
|
slot |
Calculate dot product between current Vector3d and specified Vector3d.
- Parameters
-
- Returns
- Dot product value
double Vector3d::getCos |
( |
const Vector3d |
v2 | ) |
const |
|
slot |
Calculate cosine angle between current Vector3d and specified Vector3d.
- Parameters
-
- Returns
- Cosine angle
double Vector3d::getProjectionRatio |
( |
const Vector3d |
v2 | ) |
const |
|
slot |
Get ratio from projection of current Vector3d onto specified Vector3d.
- Parameters
-
- Returns
- ratio value
double Vector3d::getSin |
( |
const Vector3d |
v2 | ) |
const |
|
slot |
Calculate sine angle between current Vector3d and specified Vector3d.
- Parameters
-
- Returns
- Sine angle
bool Vector3d::isEqual |
( |
const Vector3d |
v2 | ) |
const |
|
slot |
Test if the two vectors are equals.
- Parameters
-
- Returns
- Result of test
bool Vector3d::isNotEqual |
( |
const Vector3d |
v2 | ) |
const |
|
slot |
Test if the two vectors are not equals.
- Parameters
-
- Returns
- Result of test
bool Vector3d::isZero |
( |
| ) |
const |
|
slot |
Test if Vector3d is zero.
- Returns
- Result of test
double Vector3d::length |
( |
| ) |
const |
|
slot |
Retrieve length of Vector3d.
- Returns
- Length
double Vector3d::lengthSq |
( |
| ) |
const |
|
slot |
Retrieve square length of Vector3d.
- Returns
- Square length
void Vector3d::setXYZ |
( |
const double |
x, |
|
|
const double |
y, |
|
|
const double |
z |
|
) |
| |
|
slot |
The documentation for this class was generated from the following file: