TypeLibF Xojo Plugin

PointF.Operator_Add Method

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

Operator_Add(
   rval as PointF) as PointF

Parameters

rval
The point to add.

Returns

PointF

Remarks

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


Dim p1 as PointF
Dim p2 as PointF
Dim p3 as PointF

p1 = new PointF(2.3,4.4)
p2 = new PointF(6.0,9.1)

p3 = p1 + p2

See Also

PointF Class