► |  | Teachpacks

1 | Ht DP Teachpacks
2 | Ht DC Teachpacks
3 | Ht DP/ 2e Teachpacks

▼ | 2 | Ht DC Teachpacks

2.1 | Geometry: geometry.*
2.2 | Colors: colors.*
2.3 | Draw: draw.*
2.4 | Draw: idraw.*

Version: 4.1.4
top← prev up next →

#### 2.1`` Geometry: geometry.*

Add

import geometry.*

at the top of your Definitions Window to import this library.

This package provides a class for representing positions in a Cartesian world:

+----------+
| Posn |
+----------+
| int x |
| int y |
+----------+

Posn is a class with two fields, one per coordinate. The constructor consumes two integers.

top← prev up next →