Changeset 27 for Include/Classes/System/Drawing/PointF.ab
- Timestamp:
- Dec 11, 2006, 6:14:09 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/Drawing/PointF.ab
r1 r27 58 58 End Sub 59 59 60 Function Operator () As PointF 61 Dim ptf As PointF(X, Y) 62 Return ptf 63 End Function 64 60 65 Function Operator + (pt As PointF) As PointF 61 Return Add( pt)66 Return Add(This, pt) 62 67 End Function 63 68 64 69 Function Operator + (sz As Size) As PointF 65 Return Add( sz)70 Return Add(This, sz) 66 71 End Function 67 72 68 73 Function Operator + (sz As SizeF) As PointF 69 Return Add( sz)74 Return Add(This, sz) 70 75 End Function 71 76 72 77 Function Operator - (pt As PointF) As PointF 73 Return Substract( pt)78 Return Substract(This, pt) 74 79 End Function 75 80 76 81 Function Operator - (sz As Size) As PointF 77 Return Substract( sz)82 Return Substract(This, sz) 78 83 End Function 79 84 80 85 Function Operator - (sz As SizeF) As PointF 81 Return Substract( sz)86 Return Substract(This, sz) 82 87 End Function 83 88 … … 90 95 End Function 91 96 92 Function Add(ptAs PointF) As PointF93 Dim ret As PointF( x + pt.x, y + pt.y)97 Static Function Add(pt1 As PointF, pt2 As PointF) As PointF 98 Dim ret As PointF(pt1.x + pt2.x, pt1.y + pt2.y) 94 99 Return ret 95 100 End Function 96 101 97 Function Add(sz As Size) As PointF98 Dim ret As PointF( x + sz.width, y + sz.height)102 Static Function Add(pt As PointF, sz As Size) As PointF 103 Dim ret As PointF(pt.x + sz.Width, pt.y + sz.Height) 99 104 Return ret 100 105 End Function 101 106 102 Function Add(sz As SizeF) As PointF103 Dim ret As PointF( x + sz.width, y + sz.height)107 Static Function Add(pt As PointF, sz As SizeF) As PointF 108 Dim ret As PointF(pt.x + sz.Width, pt.y + sz.Height) 104 109 Return ret 105 110 End Function 106 111 107 Function Substract(ptAs PointF) As PointF108 Dim ret As PointF( x - pt.x, y - pt.y)112 Static Function Substract((pt1 As PointF, pt2 As PointF) As PointF 113 Dim ret As PointF(pt1.x - pt2.x, pt1.y - pt2.y) 109 114 Return ret 110 115 End Function 111 116 112 Function Substract(sz As Size) As PointF113 Dim ret As PointF( x - sz.width, y - sz.height)117 Static Function Substract(pt As PointF, sz As Size) As PointF 118 Dim ret As PointF(pt.x - sz.Width, pt.y - sz.Height) 114 119 Return ret 115 120 End Function 116 121 117 Function Substract(sz As SizeF) As PointF118 Dim ret As PointF( x - sz.width, y - sz.height)122 Static Function Substract(pt As PointF, sz As SizeF) As PointF 123 Dim ret As PointF(pt.x - sz.Width, pt.y - sz.Height) 119 124 Return ret 120 125 End Function
Note:
See TracChangeset
for help on using the changeset viewer.