at the risk of being trivial I would like to draw the vector $\vec{AB}$ where $A$ an d $B$ have the coordinates $(1,1,1)$ and (1,-1,2) respectively.


closed as off-topic by MarcoB, Yves Klett, dr.blochwave, Sjoerd C. de Vries, bbgodfrey Jul 3 '15 at 12:40

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – MarcoB, Yves Klett, dr.blochwave, Sjoerd C. de Vries, bbgodfrey
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    $\begingroup$ Do you mean Arrow[{{1,1,1},{1,-1,2}}]? $\endgroup$ – Niki Estner Jul 3 '15 at 7:40
  • $\begingroup$ Graphics3D[Arrow[{{1, 1, 1}, {1, -1, 2}}]] $\endgroup$ – Enrique Pérez Herrero Jul 3 '15 at 7:49

To expand on Nikie's comment...

Graphics3D[Arrow[{{1, 1, 1}, {1, -1, 2}}], Axes -> True, 
 AxesLabel -> {"X", "Y", "Z"}, ImageSize -> Large]

Arrow is a symbolic graphics primitive. Graphics3D is a function to draw graphics primitives.

  • $\begingroup$ Thank you so much for yours help. $\endgroup$ – Zbigniew Jul 3 '15 at 8:00

You can use all of Three‐Dimensional Graphics Primitives like so;

a = {1, 1, 1};
b = {1, -1, 2};
Graphics3D[{Red, Arrow[{a, b}]}, Axes -> True, Boxed -> True, 
AxesLabel -> {x, y, z}]

enter image description here

If useful, WA also can process this information, check the parametric info;

enter image description here

And there is a verry nice Reference on this Site:

Plot points, line and plane in one 3D plot [closed]


Not the answer you're looking for? Browse other questions tagged or ask your own question.