Suppose I have two definitions of a function such as
arrowAxesXYZ[{a_, b_, c_}] :=
Map[Arrow[Tube[{{0, 0, 0}, #}]] &, {a + 2, b + 2,
c + 2} IdentityMatrix[3]]
arrowAxesXYZ[{a_, b_, c_}, arrowhead_, arrowstyle_] := {arrowstyle,
Arrowheads[arrowhead],
Map[Arrow[Tube[{{0, 0, 0}, #}]] &, {a + 2, b + 2,
c + 2} IdentityMatrix[3]]}
Graphics3D@arrowAxesXYZ[{10, 3, 2}, Large, Red]
Graphics3D@arrowAxesXYZ[{10, 3, 2}]
The first function arrowAxesXYZ[{a, b, c}] uses the default values Arroheads and style of the Arrow. The second one arrowAxesXYZ[{a, b, c}, arrowhead, arrowstyle] uses the values given by the user.
How can I compine the two definitions into one? I am familiar with Default but I don't know how it can be used here.
Thanks.


