Script Reference : Point

The Point class describes a point in a 2-D coordinate system. Usually all coordinates are measured in mm.

Data Members
Data member Type Description
x float Horizontal coordinate.
y float Vertical coordinate.

 

Constructors
Name Description
Point::Point() Creates a Point object and initializes the X and Y data members to zero. This is the default constructor.
Point::Point(float,float) Creates a Point object using two floats to initialize the X and Y data members.
Point::Point(float) Creates a Point object using one float or integer to initialize the X and Y data members.
Point::Point(Point) Creates a new Point object and copies the data members from another Point object.

 

Methods
Name Return Type Description
float Length() float Returns length of vector defined by x, y.
+, -, /, * Point Standard arithmetical operations.