Coordinates
4 nodes
On this page 4
Circular Inversion
FunctionTurns the plane inside out about a circle: a point near the centre goes far away and a far point comes close, while the circle itself stays where it is.
Signature
CircularInversion -> Vector 2D
UV: Vector 2D
radius: Number
center: Vector 2DVector2D CircularInversion(
Vector2D uv,
double radius = 1,
Vector2D center)Parameters
| name | type | default | description |
|---|---|---|---|
| UV | Vector 2D | — | The point. |
| radius | Number | 1 | The circle that stays in place. |
| center | Vector 2D | — | The circle's centre, which goes to infinity. |
Returns
| UV | Vector 2D |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Coordinates
- Package
- GPU Kernels
Grid
FunctionDivides the plane into square cells and answers where in its cell a point is, so whatever reads the result repeats in every cell.
Signature
Grid -> (UV: Vector 2D, xIndex: Number, yIndex: Number, center: Vector 2D)
UV: Vector 2D
cells: NumberVector2D Grid(
Vector2D uv,
double cells,
out double xIndex,
out double yIndex,
out Vector2D center)Parameters
| name | type | default | description |
|---|---|---|---|
| UV | Vector 2D | — | The point. |
| cells | Number | — | How many cells span the shorter side of the picture; one cell is centred on the origin. |
Returns
| UV | Vector 2D |
| xIndex | Number |
| yIndex | Number |
| center | Vector 2D |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Coordinates
- Package
- GPU Kernels
Kaleidoscope
FunctionFolds the plane into mirrored wedges around the origin, as a kaleidoscope's mirrors do: whatever is in one half-wedge appears in all of them.
Signature
Kaleidoscope -> Vector 2D
UV: Vector 2D
splits: Number
angle: NumberVector2D Kaleidoscope(
Vector2D uv,
double splits = 6,
double angle = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| UV | Vector 2D | — | The point. |
| splits | Number | 6 | How many wedges the circle is divided into. |
| angle | Number | 0 | Turns the wedges, in radians. |
Returns
| UV | Vector 2D |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Coordinates
- Package
- GPU Kernels
Zoom
FunctionMagnifies around a centre: a zoom of 2 shows everything twice as large.
Signature
Zoom -> Vector 2D
UV: Vector 2D
zoom: Number
center: Vector 2DVector2D Zoom(Vector2D uv, double zoom = 1, Vector2D center)
Parameters
| name | type | default | description |
|---|---|---|---|
| UV | Vector 2D | — | The point. |
| zoom | Number | 1 | How much to magnify; above 1 enlarges, below 1 shrinks. |
| center | Vector 2D | — | The point that stays where it is. |
Returns
| UV | Vector 2D |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Coordinates
- Package
- GPU Kernels