Script
|
#include <math.h>
Public Slots | |
void | setXYZ (double x, double y, double z) |
Set the x, y, z coordinate to the given. | |
bool | isOrigin () |
Test if Point3d is at origin. | |
bool | isEqual (Point3d p2) |
Test if current Point3d is equal to specified Point3d. | |
bool | isNotEqual (Point3d p2) |
Test if current Point3d is not equal to specified Point3d. | |
double | distance (Point3d p2) |
Calculate distance between current Point3d and specified Point3d. | |
double | distanceSq (Point3d p2) |
Calculate square distance between current Point3d and specified Point3d. | |
Point3d & | round (double quantum) |
Round x, y coordinate to floor with the given resolution. | |
Point3d & | interpolate (double t, Point3d p1, Point3d p2) |
Calculate Point3d as interpolation between two points. | |
Point3d | add (Vector3d v) |
Add specified Vector3d to current Point3d. | |
Point3d | minus (Vector3d v) |
Substracts current Point3d with specified Vector3d. | |
Vector3d | minus (Point3d p2) |
Substracts current Point3d with specified Point3d. | |
Point3d & | addEq (Vector3d v) |
Add specified Vector3d to current Point3d. | |
Point3d & | minusEq (Vector3d v) |
Substract current Point3d with specified Vector3d. | |
Point2d | toPoint2d () |
Convert current Point3d to bi-dimensionnal Point2d. | |
Public Member Functions | |
Point3d () | |
Create a new empty Point3d. | |
Point3d (double x, double y, double z) | |
Create a new Point3d. | |
Properties | |
double | x |
double | y |
double | z |
The Point3d class defines a three-dimensional point container. Point3d objects can be instantiated in the scripting environment.
You can use it in both Script Editor and scriptModule.
Point3d::Point3d | ( | ) |
Create a new empty Point3d.
Point3d::Point3d | ( | double | x, |
double | y, | ||
double | z | ||
) |
Create a new Point3d.
x | X value |
y | Y value |
z | Z value |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
Test if Point3d is at origin.
|
slot |
Round x, y coordinate to floor with the given resolution.
|
slot |
Set the x, y, z coordinate to the given.
|
slot |
|
readwrite |
|
readwrite |
|
readwrite |