# Point

Point inherits from Number and defines instance variables x, y. It has no subclasses.

A Point is a x,y value pair, usually used for representing the positions of graphics objects.

## Methods defined in Point:

### Methods for accessing:

- x
- x: newX
- x: newX y: newY
- y
- y: newY

### Methods for arithmetic:

- - number
- * number
- / number
- // number
  punt on the double dispatching stuff...
- + number

### Methods for comparing:

- < number
- = number
- hash

### Methods for double dispatching:

- addToPoint: point
- coerce: number
- divideIntoPoint: point
- equalToPoint: point
- generality
- greaterThanPoint: point
- multiplyByPoint: point
- subtractFromPoint: point

### Methods for instance creation:

- @ y
- extent: extent

### Methods for math functions:

- abs
  Not sqrt(x^2 + y^2)

### Methods for printing:

- printOn: stream

Pocket Smalltalk Documentation