UtilsLib REALbasic Support Plugin

Point.Operator_Add Method

A + operator to be able to add two points together.

Operator_Add(
   rval as Point) as Point

Parameters

rval
The point to add.

Returns

Point

Remarks

Addition works as follows: (1,2) + (3,5) = (4,7)

Dim p1 as Point
Dim p2 as Point
Dim p3 as Point

p1 = new Point(2,4)
p2 = new Point(6,9)

p3 = p1 + p2

See Also

Point Class