0
$\begingroup$

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.

$\endgroup$
  • 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
3
$\begingroup$

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.

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

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]

$\endgroup$

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