Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Morales
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: - Please Select -
Posted: 21st Feb 2003 02:10
what is a vector theres a vector 2,3,4. i tried the help files and they dont show me how or what a vectir is.
if some one can, could you show me some simple vector examples.
like the way the help files shoew how to use a function
sync
do
x=4
z=3
s(x,z)
sync
loop
function s(x,z)
print x
print z
endfunction
somthing as simple as that pleas explain a vector
it will help me to rilly understand darkbasicpro.
id like to be a good programer i know almost everything
in darkbasicpro. .....well almost everything....

thanks
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 21st Feb 2003 02:28
The best way to understand them is to go and buy a good maths text book to be honest. Or if you are still at school - ask your math teacher

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
Morales
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: - Please Select -
Posted: 21st Feb 2003 02:43
so a vector is a rill thing i thought it was a madeup
word just to give the comand a name.
Morales
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: - Please Select -
Posted: 21st Feb 2003 02:48
i have ben programing sence darkbasicpro came in the mail
so still dont know alot about programing.

...need to learn a lot more...
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 21st Feb 2003 05:09
Yea- vector is real, just like SIN COS and TAN All MATH examples. I cant wait (Ima nerd!) till I learn about those in school LOL. Just wanna 'enhance' my programming abilities.

RPGamer

Current - RPG: Eternal Destiny
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!
QuothTheRaven
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 21st Feb 2003 06:27
a vector is a line segment. to the stupid, a vector is a line. (but by definition, a line extends forever. A vector is a line segment)

A vector image is an image defined by lines and points, as opposed to individual pixels.

morales, you wont really need to care much about vectors in your programming. you wont gain anything, and if you think your ability to program lies in knowing what a vector is, you aren't a programmer at all.

and learn to spell!
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 21st Feb 2003 07:11
e.e..e the real definition of a vector is:"A vector is an oriented line segment"

then it mean that a vector is represented by: a direction and a power (lenght of the line segment)

then....if a thing..is affected by a vector...it will move..

ex:a boat on water... and wind (vector)

ok .. a wind (10km/h) at 45 degree
and the boat at 0,0 with NO FRICTION =)

then .. convert the vector in ...coordinate.. it do:
(7km on X)/h
(7km on y)/h

then...after ..you do what you want..

ex: after 10 minutes ..where will be the boat..

X=7km/h * 1h/60m * 10=1m
y=7km/h * 1h/60m * 10=1m

then ..your boat will be at (1,1) ..after 10 minutes....

ive learn so much in that "physique 054 534" course

Login to post a reply

Server time is: 2024-09-19 17:31:01
Your offset time is: 2024-09-19 17:31:01