Geometry
Point
A place on the page, by its x and y coordinates.
Object type geometry pins
A Point is a position: x across and y down, since the page's y axis
points down. The page's top-left corner is (0, 0).
Hierarchy
- Parents
- None
- Subtypes
- None
Properties
| Name | Type | Notes |
|---|---|---|
| x | number | |
| y | number |
Nodes
Break Point
Node id break/Point
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| object | Point | type default |
Outputs
| Name | Type | Notes |
|---|---|---|
| x | number | |
| y | number |
Make Point
Node id make/Point
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| x | number | 0 | |
| y | number | 0 |
Outputs
| Name | Type | Notes |
|---|---|---|
| object | Point |
Set Point
Node id set/Point
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| object | Point | type default | |
| x | number | — | |
| y | number | — |
Outputs
| Name | Type | Notes |
|---|---|---|
| object | Point |
Lerp Point
Node id lerp/Point
Inputs
Outputs
| Name | Type | Notes |
|---|---|---|
| result | Point |
Notes
- Where points are used. Positions of objects, polygon vertices, polyline points, segment ends and Bézier control points are all Points.
- Not a Vec2. Point and Vec2 don't connect to each other: a point is a place, a vector a move.
- Default. Make Point gives (0, 0).
- Rounding. Coordinates are rounded to a fixed number of decimals.
Lerp
Lerp Point gives the point a fraction t of the way from a to b. t
is clamped to 0, 1.
Related types
- Vec2 and BoundingBox.