C
Colin McGuire
Hi again NG. Is there an easier way than I have shown to add two
points together. All I can find in the docs is a shortcut to add a
point and a size together (ie Point.op_Addition).
Thank you
Colin
Dim pt1 As New Point(10, 10)
Dim pt2 As New Point(3, 5)
//lots of other code
//Adding point2 to point1, is there a hidden operator that
//would enable me to go for example pt1.add(pt2) ?
pt1.X+=pt2.X
pt1.Y+=pt2.Y
points together. All I can find in the docs is a shortcut to add a
point and a size together (ie Point.op_Addition).
Thank you
Colin
Dim pt1 As New Point(10, 10)
Dim pt2 As New Point(3, 5)
//lots of other code
//Adding point2 to point1, is there a hidden operator that
//would enable me to go for example pt1.add(pt2) ?
pt1.X+=pt2.X
pt1.Y+=pt2.Y