Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

Position

mattt edited this page Nov 16, 2020 · 7 revisions

Position

public enum Position

Inheritance

Hashable

Enumeration Cases

point

"%f,%f('!')?" representing the point (x,y). The optional '!' indicates the node position should not change (input-only). If dim is 3, point may also have the format "%f,%f,%f('!')?" to represent the point (x,y,z).

case point(point: Point)

spline

spline ( ';' spline )* where spline = (endp)? (startp)? point (triple)+ and triple = point point point and endp = "e,%f,%f" and startp = "s,%f,%f" If a spline has points p1 p2 p3 ... pn, (n = 1 (mod 3)), the points correspond to the control points of a cubic B-spline from p1 to pn. If startp is given, it touches one node of the edge, and the arrowhead goes from p1 to startp. If startp is not given, p1 touches a node. Similarly for pn and endp.

case spline(points: [Point])
Clone this wiki locally