[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

VSE Point


Instance methods
-VSES8Compatible

*VSES8Compatible

/VSES8Compatible

//VSES8Compatible

\\VSES8Compatible

+VSES8Compatible

<VSES8Compatible

<=VSES8Compatible

=VSES8Compatible

>VSES8Compatible

>=VSES8Compatible

absVSE
    RECOMMENDATION: In order to campatibilize it is possible to add #abs method on S8 side as follows:
! Point methodsFor: #arithmetic-VSECompat !
abs
   "Answer a Point with coordinates that are the absolute
   value of the x and y coordinates of the receiver."
   ^x abs @ y abs! !

asPointVSES8Compatible

between:and:VSE
    RECOMMENDATION: In order to campatibilize it is possible to add #abs method on S8 side as follows:
! Point methodsFor: #arithmetic-VSECompat !
between: aPoint and: bPoint
   "Answer true if the receiver is greater than or equal to
   aPoint and less than or equal to aPoint, else
   answer false."
   ^aPoint <= self
        and: [self <= bPoint]! !

corner:VSE
    RECOMMENDATION: In order to campatibilize it is possible to add #corner: method on S8 side as follows:
! Point methodsFor: #converting-VSECompat !
corner: aPoint
   "Answer a Rectangle with origin equal to the receiver
   and corner equal to aPoint."
   ^Rectangle origin: self corner: aPoint! !

extent:VSES8Compatible

extentFromLeftBottom:VSE
    RECOMMENDATION: In order to campatibilize it is possible to add #extentFromLeftBottom: method on S8 side as follows:
! Point methodsFor: #converting-VSECompat !
extentFromLeftBottom: aNumber
   "Answer a Rectangle whose origin is the receiver
   at the bottom-left corner and extent is aPoint."
   ^Rectangle
      leftTop: (self x @ (self y up: aPoint y))
      rightBottom: ((self x right: aPoint x) @ self y)! !

! Number methodsFor: #arithmetic-VSECompat !
up: aNumber
   "Answer the location up aNumber of positions from
   the receiver."
   ^self - aNumber! !

extentFromLeftTop:VSE
    RECOMMENDATION: In order to campatibilize it is possible to add #extentFromLeftBottom: method on S8 side as follows (see also #rightAndDown: in this section)
! Point methodsFor: #converting-VSECompat !
extentFromLeftTop: aPoint
   "Answer a Rectangle with left top corner equal to the receiver
   and extent equal to aPoint."
   ^Rectangle
      leftTop: self
      rightBottom: (self rightAndDown: aPoint)! !

isPointVSE
    RECOMMENDATION: In order to campatibilize it is possible to add #isPoint method on S8 side as follows:
! Point methodsFor: #testing-VSECompat !
isPoint
   "Answer true if receiver is a kind of Point."
   ^true! !

! Object methodsFor: #testing-VSECompat !
isPoint
  "Answer true if receiver is a kind of Point."
   ^false! !

max:VSES8Compatible

min:VSES8Compatible

negatedVSE
    RECOMMENDATION: In order to campatibilize it is possible to add #isPoint method on S8 side as follows:
! Point methodsFor: #arithmetic-VSECompat !
negated
   "Answer a Point with the x and y coordinates of
   the receiver negated."
   ^x negated @ y negated ! !

rightBottom:VSES8Compatible

rightTop:VSE
    RECOMMENDATION: In order to campatibilize it is possible to add #rightTop: on S8 side as follows:
! Point methodsFor: #converting-VSECompat !
rightTop: aPoint
        "Answer a Rectangle with left bottom equal to the receiver
         and right top equal to aPoint."
    ^Rectangle leftBottom: self rightTop: aPoint! !

Note Rectangle class>>letfBotom:rightTop: is not part of S8. More detailed information in Rectangle.

roundedVSES8Compatible

truncatedVSES8Compatible

xVSES8Compatible

x:VSES8Compatible

yVSES8Compatible

y:VSES8Compatible


Secondary

Instance methods
asParameterVSE
asPointParameterVSE
codeGenerationMessageExpressionIn:VSE
deviceToLogical:VSE
dotProduct:VSE
down:VSE
hashVSE
isBefore:VSE
isLeftAndAbove:VSE
isLeftAndAboveOrEqual:VSE
isLeftAndBelow:VSE
isRightAndAbove:VSE
isRightAndBelow: VSE
left:VSE
leftAndDown:VSE
leftAndUp:VSE
leftMostAndHighest:VSE
leftMostAndLowest:VSE
mapClientToScreen:VSE
mapFromWindow:VSE
mapFromWindow:to:VSE
mapScreenToClient:VSE
mapToScreen:VSE
mapToWindow:VSE
moveBy:VSE
partMessagesVSE
printOn:VSE
right:VSE
rightAndDown:VSE
rightAndUp:VSE
rightMostAndHighest:VSE
rightMostAndLowest:VSE
transposeVSE
truncateTo:VSE(1)
up:VSE

Class methods
fromString:VSE(1) revisar junto a String

Private

Class methods
fromInteger:

Instance methods
dpToLp:,

TODO: (1) revisar