Skip to main content
Rust4PM

Point

A point in output (drawing) space, in px.
Used as Input

0

functions accept this type(+17 nested)

Used as Output

0

functions return this type(+11 nested)

Type Definition

2 nested items
struct— A point in output (drawing) space, in px.
x*:f64— Horizontal coordinate, growing to the right.
y*:f64— Vertical coordinate, growing downwards (SVG convention).

Example JSON Value

json
{
  "x": 0.2,
  "y": 0.2
}