Skip to main content

Right Angle

right-angle() 

Draw a right angle between a and b through origin origin

line((0,0), (1,2), name: "a")
line((0,0), (2,-1), name: "b")

// Draw an angle between the two lines
cetz.angle.right-angle(
"a.start",
"a.end",
"b.end",
radius: 1.5
)

Angle origin

Coordinate of side a, containing an angle between origin and b.

Coordinate of side b, containing an angle between origin and a.

label:

Default: "•"

Draw a label at the angles "label" anchor.

name:

none or str
Default: none

Element name, used for querying anchors.

..style:

Style key-value pairs.

Styling

Styling is the same as the angle function.

Anchors

Anchors are the same as the angle function