Returns a positioned Triangle from an equilateral triangle definition.
By default the rotation is such that point a and c are lying on the horizontal,
and b is the upward-facing tip.
Default is a triangle pointing upwards with b at the top, c to the left and b to right on the baseline.
Example rotation values in radians:
▶️ 0: a and c on vertical, b at the tip
◀️ Math.PI: cand a are on vertical, with b at the tip.
🔽 Math.PI/2: c and a are on horizontal, c to the left. b at the bottom.
🔼 Math.PI*1.5: c and a are on horizontal, c to the right. b at the top. (default)
Returns a positioned
Triangle
from an equilateral triangle definition. By default the rotation is such that pointa
andc
are lying on the horizontal, andb
is the upward-facing tip.Default is a triangle pointing upwards with b at the top, c to the left and b to right on the baseline.
Example rotation values in radians:
c
anda
are on vertical, withb
at the tip.c
anda
are on horizontal,c
to the left.b
at the bottom.c
anda
are on horizontal,c
to the right.b
at the top. (default)