Script
|
#include <math.h>
Public Slots | |
void | setXYZ (double x, double y, double z) |
Set the x, y, z coordinate to the given. | |
bool | isZero () |
Test if Vector3d is zero. | |
bool | isEqual (Vector3d v2) |
Test if the two vectors are equals. | |
bool | isNotEqual (Vector3d v2) |
Test if the two vectors are not equals. | |
double | length () |
Retrieve length of Vector3d. | |
double | lengthSq () |
Retrieve square length of Vector3d. | |
double | getCos (Vector3d v2) |
Calculate cosine angle between current Vector3d and specified Vector3d. | |
double | getSin (Vector3d v2) |
Calculate sine angle between current Vector3d and specified Vector3d. | |
double | dot (Vector3d v2) |
Calculate dot product between current Vector3d and specified Vector3d. | |
Vector3d | cross (Vector3d v2) |
Calculate cross product between current Vector3d and specified Vector3d. | |
Vector3d & | project (Vector3d v2) |
Project current Vector3d onto specified Vector3d. | |
Vector3d | getProjection (Vector3d *v2) |
Project current Vector3d onto specified Vector3d. | |
double | getProjectionRatio (Vector3d v2) |
Get ratio from projection of current Vector3d onto specified Vector3d. | |
Vector3d & | normalize () |
Normalize current Vector3d. | |
Vector3d | getNormalized () |
Normalize current Vector3d. | |
Vector3d & | negate () |
Negate current Vector3d. | |
Public Member Functions | |
Vector3d () | |
Create a new empty Vector3d. | |
Vector3d (double x, double y, double z) | |
Create a new Vector3d. | |
Properties | |
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.
You can use it in both Script Editor and scriptModule.
Vector3d::Vector3d | ( | ) |
Create a new empty Vector3d.
Vector3d::Vector3d | ( | double | x, |
double | y, | ||
double | z | ||
) |
Create a new Vector3d.
x | X value |
y | Y value |
z | Z value |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
Test if Vector3d is zero.
|
slot |
Retrieve length of Vector3d.
|
slot |
Retrieve square length of Vector3d.
|
slot |
Set the x, y, z coordinate to the given.
|
readwrite |
x value
|
readwrite |
y value
|
readwrite |
z value