'
' Point.Add
'
' SELF: {
'   ptA, ptB
' }
'
' Returns: Point
'
' Requires: Number.AsPoint, Point.AsNumber
'
' This script uses points a@b to represent numbers of the
' form a + b*e modulo m=2^31 - 1 where e = 2^16.  Note that
' e^2 = 2 modulo m. Thus,
'
' a@b + c@d = a+c + (b+d)e, which is then reduced modulo m.
'
' ArcView 3.2a
' 4 Jan 2002, WAH @QD
' (c) 2002 Quantitative Decisions
' All rights reserved.
'======================================================================'

n = av.Run("Point.AsNumber",SELF.Get(0)+SELF.Get(1))
return av.Run("Number.AsPoint",n)
' end of script