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