Shapes
1 node
On this page 1
Disk
FunctionA disk: how far a point is from the disk's edge, negative inside and positive outside.
Signature
Disk(UV: Vector 2D, radius: Number, center: Vector 2D) -> Number
double Disk(Vector2D uv, double radius = 0.5, Vector2D center)
Parameters
| name | type | default | description |
|---|---|---|---|
| UV | Vector 2D | — | The point, in shader coordinates. |
| radius | Number | 0.5 | The disk's radius. |
| center | Vector 2D | — | The disk's centre. |
Returns
| Distance | Number |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Shapes
- Package
- GPU Kernels