angle
The angle at a vertex, marked with an arc or a right-angle square and measured.
anglexyargandpolarxyzplane

An angle marks the corner at a vertex and measures it: angle(at: (1, 1); from: (4, 1); to: (1, 4)). An arm is a point it runs through, (4, 1), or a bearing in degrees anticlockwise from the positive x axis, 30, and the two arms may be written differently. At a right angle the mark is a square, elsewhere an arc; mark: arc or mark: square says which outright. arcs: 2 draws two concentric arcs, the notation for equal angles, and arms draws the arms themselves.
sweep: chooses which way round. minor, the default, is the corner, never more than 180°; reflex is the way round outside it; anticlockwise and clockwise take the arms in the order written, which a sector or a rotation needs. A keyframed arm sweeps round the short way. radius is in pixels, so the mark is the same size whatever the window. In space the corner and arms are points (x, y, z), and the arc is drawn in the plane the arms span.


graph{
polygon(x: 0, 4, 0; y: 0, 0, 3; colour: grey)
angle#a(at: (0, 0); from: (4, 0); to: (0, 3))
angle#b(at: (4, 0); from: (0, 0); to: (0, 3); label: $\theta$; show-value)
}degrees and radians, and show-value draws the reading at the arc. Both are the angle as drawn, so prose citing {{#b.degrees}} agrees with the arc, even while a keyframed arm is moving.#Attributes
atvertex, originCan be written as shorthand: angle:valuefroma, starttofrom may be.b, endsweepminorreflexanticlockwiseclockwiseminorradius28markautoarcsquaremarkerautoarcs1armsrays, legsfalseshow-valueshow-measure, measurefalsecolourpaintcolorpurplefill-stylesolidhatcheddottedoutlinedsolidstroke-stylesoliddasheddottedsolidwidth2opacity1labelcontenthiddenfalselockeditable: graph.lockedfalsetext-size20layergroup#Derived attributes
Computed while the element renders — read one with #id.name in attribute position or {{#id.name}} in prose, never set.
degreesradiansdegrees is.#Allowed content
#Allowed in
#Examples


graph{
angle(at: (1, 1); from: (4, 1); to: (1, 4))
}(
x-domain: [0, 5]
y-domain: [0, 5]
)

graph{
angle(at: (2, 3); from: (5, 3); to: (2, 6); arcs: 2; label: $\theta$)
}(
x-domain: [1, 6]
y-domain: [2, 7]
)

graph:xyz{
vector(dx: 2; dy: 0; dz: 0; colour: blue)
vector(dx: 1; dy: 2; dz: 1; colour: teal)
angle#theta(at: (0, 0, 0); from: (2, 0, 0); to: (1, 2, 1); label: $\theta$)
}(
x domain: [0, 2]
y domain: [0, 2]
z domain: [0, 2]
aspect: equal
)#Notes
- Give an angle a node id —
angle#theta(…)— and the prose beside the plot can cite its measurement with{{#theta.value}}, which cannot drift from the arc it is describing.