Contents
Navigation
Home User Reference Other Resources

The QTPlgPoint class lets you deal with the coordinates of a point in a bi–dimensional space. No assumption is done about the orientation of the reference system.

Since version 6.7 of the plugin this class can be used in Console Applications






The QTPlgPoint class constructors are called when you create a new instance of the class, while the ˜QTPlgPoint class destructor, is called automatically when the class is no more in use. Also, you can invoke the class destructor by setting the instance of the class to nil.
Once a new class instance is returned, it is good practice to check the class property to be sure that the new object can be used. A QTPlgPoint object is always valid.

The class provides you with the following initializer methods:
()
This is the default constructor. All of the class properties are set to 0
(other as QTPlgPoint)
This is the copy constructor. The properties of the object to be copied will be used to initialize the new class instance properties
(x as integer, y as integer)
the coordinates of the point are initialized to the values of the x and y parameters

specifies the horizontal position of the point in respect to the origin of the reference system
specifies the vertical position of the point in respect to the origin of the reference system

(p as QTPlgPoint) as single
use this method to compute the distance between the point specified by the p parameter and the point represented by the current class instance.
returns the points distance. Check the class property for errors
(p as QTPlgPoint) as QTPlgPoint
use this method to compute the middle point between the two points specified by the p parameter and the current class instance.
returns the middle point. Check the class property for errors

(p as QTPlgPoint) as QTPlgPoint
use the + Realbasic operator to create a new point whose coordinates are obtained by summing the and properties of the source points
returns a new QTPlgPoint class instance. Check the class property for errors
(p as QTPlgPoint) as QTPlgPoint
use the Realbasic operator to create a new point whose coordinates are obtained by subtracting the and coordinates of the source points
returns a new QTPlgPoint class instance. Check the class property for errors