Returns an equilateral triangle centered at the origin.
// Create a triangle at 100,100 with radius of 60const tri = fromRadius({x:100,y:100}, 60);// Triangle with point A upwards, B to the right, C to the leftconstr tri2 = fromRadius({x:100,y:100}, 60, {initialAngleRadian: -Math.PI / 2}); Copy
// Create a triangle at 100,100 with radius of 60const tri = fromRadius({x:100,y:100}, 60);// Triangle with point A upwards, B to the right, C to the leftconstr tri2 = fromRadius({x:100,y:100}, 60, {initialAngleRadian: -Math.PI / 2});
Origin
Radius of triangle
Options
Optional
Readonly
Returns an equilateral triangle centered at the origin.