Changeset 212 for Include/Classes/System/Drawing/PointF.ab
- Timestamp:
- Apr 13, 2007, 5:12:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/Drawing/PointF.ab
r166 r212 19 19 End Sub 20 20 21 Sub PointF( ByRefpt As PointF)21 Sub PointF(pt As PointF) 22 22 x = pt.x 23 23 y = pt.y 24 24 End Sub 25 25 26 Sub PointF( ByRefsz As SizeF)26 Sub PointF(sz As SizeF) 27 27 x = sz.Width 28 28 y = sz.Height … … 46 46 47 47 Function IsEmpty() As Boolean 48 If x = 0 And y = 0 Then 49 Return _System_TRUE 50 Else 51 Return _System_FALSE 52 End If 48 Return x = 0 And y = 0 53 49 End Function 54 50 /* 55 51 Sub Operator = (ByRef pt As PointF) 56 52 x = pt.x 57 53 y = pt.y 58 54 End Sub 59 60 Function Operator () As PointF 61 Dim ptf As PointF(X, Y) 62 Return ptf 63 End Function 64 55 */ 65 56 Function Operator + (pt As PointF) As PointF 66 57 Return Add(This, pt) … … 126 117 127 118 Function Equals(pt As PointF) As Boolean 128 If x = pt.x And y = pt.y Then 129 Equals = _System_TRUE 130 Else 131 Equals = _System_FALSE 132 End If 119 Return x = pt.x And y = pt.y 133 120 End Function 134 121 135 122 Override Function GetHashCode() As Long 136 Return GetDWord(VarPtr(x)) Xor _System_BSwap(GetDWord(VarPtr(x)))123 Return (GetDWord(VarPtr(x)) Xor _System_BSwap(GetDWord(VarPtr(x)))) As Long 137 124 End Function 138 125
Note:
See TracChangeset
for help on using the changeset viewer.