Teachpacks

1`` | Ht DP Teachpacks
2`` | Ht DC Teachpacks

Version: 4.0.2
contents
← 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.

contents
← prev up next →