Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #1904 > unrolled thread
| Started by | Hauke Reddmann <fc3a501@uni-hamburg.de> |
|---|---|
| First post | 2011-04-27 09:39 +0000 |
| Last post | 2011-04-27 11:25 +0000 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
Drawing a vector list Hauke Reddmann <fc3a501@uni-hamburg.de> - 2011-04-27 09:39 +0000
Re: Drawing a vector list Yves Klett <yves.klett@googlemail.com> - 2011-04-27 11:24 +0000
Re: Drawing a vector list Peter Breitfeld <phbrf@t-online.de> - 2011-04-27 11:25 +0000
| From | Hauke Reddmann <fc3a501@uni-hamburg.de> |
|---|---|
| Date | 2011-04-27 09:39 +0000 |
| Subject | Drawing a vector list |
| Message-ID | <ip8o81$pif$1@smc.vnet.net> |
A n00b question - I have a 3D vector list L={{A1,A2},{B1,B2},{C1,C2}...
where for example A1={1,2,3},A2={4,5,6} and so on. I want to draw
the vectors A1->A2 etc. LINE has no arrowhead option, ARROW only eats 2D vectors
and VECTORPLOT3D has yet another unfitting syntax. I could do a hackjob and
first draw LINE[L] and then make a loop adding little arrowheads at all #2
(and I would have to compute their directions too!),
but what is the most elegant way to program this without any DO loops?
--
Hauke Reddmann <:-EX8 fc3a501@uni-hamburg.de
Leierklang und ein flammendes Inferno grüßen dich
auf das Allerzärtlichste
[toc] | [next] | [standalone]
| From | Yves Klett <yves.klett@googlemail.com> |
|---|---|
| Date | 2011-04-27 11:24 +0000 |
| Message-ID | <ip8ud9$qvn$1@smc.vnet.net> |
| In reply to | #1904 |
Hi, versions 7 and 8 nicely support 3D specs for Arrow[]. Look at the help. Regards, Yves Am 27.04.2011 11:39, schrieb Hauke Reddmann: > LOT3D has yet another unfitting syntax. I could do a hackjob and > first draw LINE[L] and then make a loop adding little arrowheads at all #2 > (and I would have to compute their directions too!), > but what is the most elegant way to program this without any DO lo
[toc] | [prev] | [next] | [standalone]
| From | Peter Breitfeld <phbrf@t-online.de> |
|---|---|
| Date | 2011-04-27 11:25 +0000 |
| Message-ID | <ip8uek$r0n$1@smc.vnet.net> |
| In reply to | #1904 |
Hauke Reddmann wrote:
> A n00b question - I have a 3D vector list L={{A1,A2},{B1,B2},{C1,C2}...
> where for example A1={1,2,3},A2={4,5,6} and so on. I want to draw
> the vectors A1->A2 etc. LINE has no arrowhead option, ARROW only eats 2D vectors
> and VECTORPLOT3D has yet another unfitting syntax. I could do a hackjob and
> first draw LINE[L] and then make a loop adding little arrowheads at all #2
> (and I would have to compute their directions too!),
> but what is the most elegant way to program this without any DO loops?
>
> --
> Hauke Reddmann <:-EX8 fc3a501@uni-hamburg.de
> Leierklang und ein flammendes Inferno grüßen dich
> auf das Allerzärtlichste
>
Maybe you want:
A1 = {0, 0, 0}; A2 = {1, 1, 1};
B1 = {3, -1, 3}; B2 = {2, 2, 2};
C1 = {4, 5, -2}; C2 = {5, 6, 7};
ll = {{A1, A2}, {B1, B2}, {C1, C2}}
Graphics3D[{Arrow/@ll}]
--
_________________________________________________________________
Peter Breitfeld, Bad Saulgau, Germany -- http://www.pBreitfeld.de
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web