I am trying to construct a triangle with 2 altitudes. It worked for 'All' vertices.
a = {5, 0};
b = {0, 0};
c = {3, 6};
tri = {a, b, c};
alt = TriangleConstruct[tri, {"Altitude", All}];
Graphics[{Style[Triangle[tri], Opacity[0.2]], alt}]
But when I tried to specify two vertices,
alt = TriangleConstruct[tri, {"Altitude", {a, b}}]
The following message came out:
TriangleConstruct is not a Graphics primitive or directive.
How do I specify two vertices to draw the altitudes?
I have also tried the following:
RandomInstance[GeometricScene[{a,b,c,d}, {d == TriangleConstruct[{a,b,c}, {"Altitude", a}]}]]
But the output was only:
RandomInstance[GeometricScene[{{a, b, c, d}, {}}, {d ==TriangleConstruct[{a, b, c}, {"Altitude", a}]}, {}]]
What went wrong?
ClearAll[alt]; alt[p_]:= TriangleConstruct[tri, {"Altitude",p}]; Graphics[{Style[Triangle[tri], Opacity[0.2]],alt/@{a,b}}]
$\endgroup$