Ignore:
Timestamp:
Apr 13, 2007, 5:12:31 PM (17 years ago)
Author:
イグトランス (egtra)
Message:

Object.ReferenceEqualsを追加

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/Classes/System/Drawing/Point.ab

    r166 r212  
    2020    End Sub
    2121
    22     Sub Point(ByRef pt As Point)
     22    Sub Point(pt As Point)
    2323        x = pt.x
    2424        y = pt.y
     
    5252
    5353    Function IsEmpty() As Boolean
    54         If x = 0 And y = 0 Then
    55             Return _System_TRUE
    56         Else
    57             Return _System_FALSE
    58         End If
     54        Return x = 0 And y = 0
    5955    End Function
    60 
     56/*
    6157    Sub Operator = (ByRef pt As Point)
    6258        x = pt.x
    6359        y = pt.y
    6460    End Sub
    65 
     61*/
    6662    Function Operator + (pt As Point) As Point
    6763        Return Add(This, pt)
     
    119115
    120116    Function Equals(pt As Point) As Boolean
    121         If x = pt.x And y = pt.y Then
    122             Equals = _System_TRUE
    123         Else
    124             Equals = _System_FALSE
    125         End If
     117        Return x = pt.x And y = pt.y
    126118    End Function
    127119
     
    145137    End Function
    146138
     139    Function Operator () As PointF
     140        Return Return PointF(X, Y)
     141    End Function
     142
    147143Private
    148144    x As Long
Note: See TracChangeset for help on using the changeset viewer.