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
Trianglefrom an equilateral triangle definition. By default the rotation is such that pointaandcare lying on the horizontal, andbis 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:
candaare on vertical, withbat the tip.candaare on horizontal,cto the left.bat the bottom.candaare on horizontal,cto the right.bat the top. (default)