Geography
5 nodes
On this page 5
Cell At
FunctionThe painting grid's cell under a place: column 0 at longitude −180°, row 0 at the north pole.
Signature
CellAt -> Integer Array
world: World
latitude: Number
longitude: Numberint[] CellAt(World world, double latitude, double longitude)
Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| latitude | Number | — | Degrees north. |
| longitude | Number | — | Degrees east. |
Returns
| Cell | Integer Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Geography
- Package
- Fantasy Planet Painter
Cell Centre
FunctionThe place at the centre of a cell of the painting grid.
Signature
CellCentre -> Geo Point
world: World
column: Integer
row: IntegerGeoPoint CellCentre(World world, int column, int row)
Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| column | Integer | — | From 0 at longitude −180°. |
| row | Integer | — | From 0 at the north pole. |
Returns
| Place | Geo Point |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Geography
- Package
- Fantasy Planet Painter
Distance
FunctionThe distance between two places along the planet's surface.
Signature
Distance -> Number
world: World
fromLatitude: Number
fromLongitude: Number
toLatitude: Number
toLongitude: Numberdouble Distance(
World world,
double fromLatitude,
double fromLongitude,
double toLatitude,
double toLongitude)Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world, whose radius sets the distance. |
| fromLatitude | Number | — | Degrees north. |
| fromLongitude | Number | — | Degrees east. |
| toLatitude | Number | — | Degrees north. |
| toLongitude | Number | — | Degrees east. |
Returns
| Kilometres | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Geography
- Package
- Fantasy Planet Painter
Project
FunctionWhere a place falls on an image of a view.
Signature
Project -> Map Point
world: World
view: View
width: Integer
height: Integer
latitude: Number
longitude: NumberMapPoint Project(
World world,
View view,
int width,
int height,
double latitude,
double longitude)Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| view | View | — | The view. |
| width | Integer | — | The image's width, in pixels. |
| height | Integer | — | The image's height, in pixels. |
| latitude | Number | — | Degrees north. |
| longitude | Number | — | Degrees east. |
Returns
| Point | Map Point |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Geography
- Package
- Fantasy Planet Painter
Unproject
FunctionWhich place a pixel of an image of a view shows.
Signature
Unproject -> Geo Point
world: World
view: View
width: Integer
height: Integer
x: Number
y: NumberGeoPoint Unproject(
World world,
View view,
int width,
int height,
double x,
double y)Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| view | View | — | The view. |
| width | Integer | — | The image's width, in pixels. |
| height | Integer | — | The image's height, in pixels. |
| x | Number | — | Pixels from the left edge. |
| y | Number | — | Pixels from the top edge. |
Returns
| Place | Geo Point |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Geography
- Package
- Fantasy Planet Painter