|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
If I have thos vectors:
A = <10,10,10>
B = <5,5,5>
and I want to use trace() to trace a ray starting at A in direction to B, how do
I calculate de direction vector?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Am 02.04.2010 12:08, schrieb MadKairon:
> If I have thos vectors:
>
> A =<10,10,10>
> B =<5,5,5>
>
>
> and I want to use trace() to trace a ray starting at A in direction to B, how do
> I calculate de direction vector?
#local Direction = (B-A);
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
clipka <ano### [at] anonymousorg> wrote:
> #local Direction = (B-A);
A more general rule-of-thumb would be
#local Direction = (<...ending point...> - <...starting point...>)
in case MadKairon decided to start at B and end at A. But perhaps that's obvious
from your reply. ;-)
Ken
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Am 02.04.2010 19:35, schrieb Kenneth:
>> #local Direction = (B-A);
>
> A more general rule-of-thumb would be
>
> #local Direction = (<...ending point...> -<...starting point...>)
>
> in case MadKairon decided to start at B and end at A. But perhaps that's obvious
> from your reply. ;-)
Not from my reply, but from his question :-P
But of course you're right, the general formula is... well, more general
;-).
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |