Point2d Object

Purpose:

returns a new Point2d object.

Syntax:

Create a new 2D point object at 0,0

p1 = point2d 

 

Create at new 2D point object at given x,y

p2 = point2d(23.2 , 45.3)

 

Create a new 2D point array object of given size

pa = point2d(givensize)

 

After a point object or point object array has been created, the following methods can be used

x
y
After a  point object array has been created, the following methods can be used
id
xspan
yspan
xl
yl
xh
yh
After a  point object array has been created by using GPS methods, the following methods can also be used
time
 

Comments:

 
xl,yl are the minimum x,y values of an array of points
xh,yh are the maximum x,y values of an array of points
xspan and yspan are the difference
you can compute either span by
myxspan = pt.xh - pt.xl
 

Example: