Script
|
The Point2d class defines a bi-dimensional point container. Point2d objects can be instantiated in the scripting environment. More...
#include <math.h>
Public Slots | |
void | setXY (const double, const double) |
Point2d & | round () |
Point2d & | round (double quantum) |
Point2d & | round (const Vector2d v) |
Point2d & | round (const Vector2d v, double quantum) |
Vector2d | toVector2d () |
Copy Point2d into a Vector2d container. | |
double | distance (const Point2d p2) const |
Calculate distance between two points. | |
double | distanceSq (const Point2d p2) const |
Calculate square distance between two points. | |
Vector2d | minus (const Point2d p2) |
Substracts current Point2d with specified Point2d. | |
Point2d | minus (const Vector2d v) |
Substracts current Point2d with specified Vector2d. | |
Point2d | add (const Vector2d v) |
Add specified Vector2d to current Point2d. | |
Point2d & | addEq (const Vector2d v) |
Add specified Vector2d to current Point2d. | |
Point2d & | minusEq (const Vector2d v) |
Substract current Point2d with specified Vector2d. | |
Point2d & | interpolate (double t, const Point2d p1, const Point2d p2) |
Calculate Point2d as interpolation between two points. | |
Public Member Functions | |
Point2d () | |
Create a new empty Point2d. | |
Point2d (double x, double y) | |
Create a new Point2d. | |
Properties | |
double | x |
x value | |
double | y |
y value | |
The Point2d class defines a bi-dimensional point container. Point2d objects can be instantiated in the scripting environment.
Point2d::Point2d | ( | ) |
Create a new empty Point2d.
Point2d::Point2d | ( | double | x, |
double | y | ||
) |
Create a new Point2d.
x | X value |
y | Y value |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
readwrite |
x value
|
readwrite |
y value