|
-
Nov 4th, 2001, 01:13 PM
#1
Thread Starter
Fanatic Member
From Point directly to another Point
Hi,
I want to know how to get from some point to another within a direct motion? not with x=x+1 and y=y+1
NOT like this:
If any questions,
write.
Thank you,
Arie.
-
Nov 4th, 2001, 06:37 PM
#2
transcendental analytic
V=v*(A-B)/|A-B|
V is the speed vector, v is speed scalar, A and B are the points (vectors)
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Nov 5th, 2001, 03:25 PM
#3
Thread Starter
Fanatic Member
A means "from" point?
B means "to" point?
Do you have a tutorial, or a sample project for this?
Thank you,
Arie.
-
Nov 5th, 2001, 03:42 PM
#4
transcendental analytic
from A to B yes.
You could implement this calculating A-B, call it C, and have Cl as length:
Cx=Ax-Bx
Cy=Ay-By
Cl=sqr(Cx*Cx+Cy*Cy)
Vx=v*Cx/Cl
Vy=v*Cy/Cl
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Nov 7th, 2001, 06:25 AM
#5
Thread Starter
Fanatic Member
Do you have a sample project for that?
I'll understand it more from an example...
Thank you, if yes,
Arie.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|