Two origins, get origin of points in line
Well, I have a line, each point has different XYZ and line total width may varray.
[A]----------------------[B] And I want to generate points of predefined distance accros the line: [A]-.-.-.-.-.-.-.-.-.-.-.-.-[B] Having origins for each one of them. It's more a math problem and I really suck at maths :mrgreen: |
Re: Two origins, get origin of points in line
Let's see if I can say it right:
Subtract B by A and you will get the vector that goes from A to B. Normalize it so it becomes with length 1. Than multiply it by the length between points (as you defined it) PHP Code:
So, now to get the point N from A you will do: PHP Code:
PHP Code:
|
Re: Two origins, get origin of points in line
Hmm... thanks, I think I got the 'trick'.
PHP Code:
[IMG]http://img295.**************/img295/8889/dedust20057.th.jpg[/IMG] It fades out really nicely, used TE_GLOWSPRITE and ledglow.spr :mrgreen: |
| All times are GMT -4. The time now is 07:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.