Vector: Difference between revisions
JurgenKnops (talk | contribs) m (Spam revert.) |
ChireLolos (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
[http://heavy-metal.immur.cn/ heavy metal polyphonic ringtones] [http://meteor-showers.placebos.cn/ meteor showers] [http://jenna-lesbian.day-n-night.cn/ jenna lesbian] [http://galleries-of-young.protonym.cn/ galleries of young boys in underwear] [http://extreme-gaming-laptop.day-n-night.cn/ extreme gaming laptop] [http://old-nude.pitana.cn/ old nude] [http://united-states-flag.protonym.cn/ united states flag] [http://water-treatment.nanosec.cn/ water treatment equipment] [http://ringtones-lg-vx7000.mintman.cn/ ringtones lg vx7000] [http://american-idiot-ringtones.placebos.cn/ american idiot ringtones] [http://used-cars-for.pitana.cn/ used cars for sale out of japan] [http://destinys-child.utimer.cn/ destinys child girl] [http://pussy-penetrations.slummy.cn/ pussy penetrations] [http://chubby-men.pitana.cn/ chubby men] [http://reliance-ringtone.protonym.cn/ reliance ringtone codes] [http://porn-flicks.immur.cn/ porn flicks] [http://pornstarbookcom.slummy.cn/ pornstarbook.com] [http://bird-identification.slummy.cn/ bird identification] [http://girls-with-small.immur.cn/ girls with small breasts] [http://maatv-ringtones.protonym.cn/ maatv ringtones] [http://free-boost-i215.placebos.cn/ free boost i215 ringtones] [http://maps-of-canada.pitana.cn/ maps of canada] [http://kids-modeling.placebos.cn/ kids modeling swimsuits] [http://making-love-in-a.slummy.cn/ making love in a boat] [http://negril.day-n-night.cn/ negril] [http://hard-drive.slummy.cn/ hard drive] [http://big-tits-gallery.alexine.cn/ big tits gallery] [http://sears-stores.nanosec.cn/ sears stores] [http://taxi-fares-uk.utimer.cn/ taxi fares uk] [http://babylon--pro-5.slummy.cn/ babylon pro 5 reg key] [http://japan-dome-house.mintman.cn/ japan dome house co.] [http://shanklin-wrappers.day-n-night.cn/ shanklin wrappers] [http://trolling-striped.slummy.cn/ trolling striped bass] [http://hot-air-balloon.protonym.cn/ hot air balloon] [http://duncan-sheik.pitana.cn/ duncan sheik] [http://hyper-thyroid.protonym.cn/ hyper thyroid] [http://free-music-ringtone.utimer.cn/ free music ringtone for boost mobile] [http://buy-xenical-cheap.nanosec.cn/ buy xenical cheap] [http://reggae-mp3-ringtones.day-n-night.cn/ reggae mp3 ringtones] [http://playboy-xxx.day-n-night.cn/ playboy xxx] [http://file-converter.day-n-night.cn/ file converter] [http://buffalo-jerky.protonym.cn/ buffalo jerky] [http://realty-park-rapids.slummy.cn/ realty park rapids] [http://simplicity-patterns.immur.cn/ simplicity patterns] [http://jess.pitana.cn/ jess] [http://london-factory.slummy.cn/ london factory] [http://12-year-old-girl.placebos.cn/ 12 year old girl picture in thong] [http://the-longest-yard.placebos.cn/ the longest yard] [http://gry.slummy.cn/ gry] [http://custom-silicone.mintman.cn/ custom silicone bracelet] [http://arnold-ca.slummy.cn/ arnold ca] [http://hard-boy-in.pitana.cn/ hard boy in speedo] [http://slutty-housewives.nanosec.cn/ slutty housewives] [http://tiki-hut.protonym.cn/ tiki hut] [http://port-allen-high.nanosec.cn/ port allen high] [http://hp-laptops.slummy.cn/ hp laptops] [http://nintendo-games.alexine.cn/ nintendo games] [http://teen-girl-spankings.protonym.cn/ teen girl spankings] [http://top-100.nanosec.cn/ top 100] [http://indoor-tropical.day-n-night.cn/ indoor tropical plants] [http://yamaha-atv-part.placebos.cn/ yamaha atv part] [http://nokia-7250i-ringtones.pitana.cn/ nokia 7250i ringtones] [http://lazyboy.alexine.cn/ lazyboy] [http://latin-teen.placebos.cn/ latin teen] [http://pilot-insurance.immur.cn/ pilot insurance company toronto] [http://sammy-hagar-ringtones.pitana.cn/ sammy hagar ringtones] [http://theory-of-elasticity.immur.cn/ theory of elasticity notes] [http://sherry-lynn.protonym.cn/ sherry lynn brown] [http://janes-guide.day-n-night.cn/ janes guide] [http://latest-news.protonym.cn/ latest news] [http://hot-n-horny.day-n-night.cn/ hot n horny] [http://killswitch-engage.placebos.cn/ killswitch engage ringtone] [http://screen-savers.nanosec.cn/ screen savers] [http://nokia-6600-ringtones.day-n-night.cn/ nokia 6600 ringtones free] [http://muay-thai.day-n-night.cn/ muay thai] [http://monophonic-ringtones.utimer.cn/ monophonic ringtones nokia] [http://cymbalta-and-weight.protonym.cn/ cymbalta and weight gain] [http://women-in-unbuttoned.protonym.cn/ women in unbuttoned blouses] [http://older-gay-daddies.utimer.cn/ older gay daddies] [http://cl-erotic.mintman.cn/ cl-erotic] [http://pictures-of-birds.placebos.cn/ pictures of birds] [http://ringtone-reik.alexine.cn/ ringtone reik] [http://leather-repair.immur.cn/ leather repair] [http://cake-topper.protonym.cn/ cake topper] [http://better-buisness.utimer.cn/ better buisness bureau] [http://charisma-carpenter.slummy.cn/ charisma carpenter playboy] [http://elephant-cum.day-n-night.cn/ elephant cum] [http://blissbox.day-n-night.cn/ blissbox] [http://lita.immur.cn/ lita] [http://tour-de-france-map.alexine.cn/ tour de france map route] [http://your-company-name.nanosec.cn/ your company name folder] [http://how-to-write-a-resume.mintman.cn/ how to write a resume] [http://rapper-eve-sex-video.nanosec.cn/ rapper eve sex video] [http://location-union.mintman.cn/ location union western] [http://va-limousine.placebos.cn/ va limousine] [http://girlshuntinggirls.utimer.cn/ girlshuntinggirls] [http://nelly-ringtone-over.slummy.cn/ nelly ringtone over and over] [http://nokia-ringtone.slummy.cn/ nokia ringtone for model 3395] [http://cold-sore.nanosec.cn/ cold sore] [http://persian-ringtones.slummy.cn/ persian ringtones samsung] | |||
[[Category:Glossary]] [[Category:Variables]] [[Category:Helpers]] | [[Category:Glossary]] [[Category:Variables]] [[Category:Helpers]] | ||
{{cleanup}} | {{cleanup}} |
Revision as of 08:10, 13 December 2007
heavy metal polyphonic ringtones meteor showers jenna lesbian galleries of young boys in underwear extreme gaming laptop old nude united states flag water treatment equipment ringtones lg vx7000 american idiot ringtones used cars for sale out of japan destinys child girl pussy penetrations chubby men reliance ringtone codes porn flicks pornstarbook.com bird identification girls with small breasts maatv ringtones free boost i215 ringtones maps of canada kids modeling swimsuits making love in a boat negril hard drive big tits gallery sears stores taxi fares uk babylon pro 5 reg key japan dome house co. shanklin wrappers trolling striped bass hot air balloon duncan sheik hyper thyroid free music ringtone for boost mobile buy xenical cheap reggae mp3 ringtones playboy xxx file converter buffalo jerky realty park rapids simplicity patterns jess london factory 12 year old girl picture in thong the longest yard gry custom silicone bracelet arnold ca hard boy in speedo slutty housewives tiki hut port allen high hp laptops nintendo games teen girl spankings top 100 indoor tropical plants yamaha atv part nokia 7250i ringtones lazyboy latin teen pilot insurance company toronto sammy hagar ringtones theory of elasticity notes sherry lynn brown janes guide latest news hot n horny killswitch engage ringtone screen savers nokia 6600 ringtones free muay thai monophonic ringtones nokia cymbalta and weight gain women in unbuttoned blouses older gay daddies cl-erotic pictures of birds ringtone reik leather repair cake topper better buisness bureau charisma carpenter playboy elephant cum blissbox lita tour de france map route your company name folder how to write a resume rapper eve sex video location union western va limousine girlshuntinggirls nelly ringtone over and over nokia ringtone for model 3395 cold sore persian ringtones samsung

For help, see the VDC Editing Help and Wikipedia cleanup process. Also, remember to check for any notes left by the tagger at this article's talk page.
A Scalar is a variable that has magnitude (a value). A Vector is a variable with both magnitude and direction, and as such has multiple values.
The most commonly seen format for a vector is {x,y,z}, the value show represent displacement values for the direction of the vector. a vector defined as {6,0,0} is pointing down the positive x-axis, and has a magnitude (or 'length') of 6.
Points vs. Vectors and Homogeneous Coordinates
Vectors are not very much different from points, which are also comprised of an x,y, and z value. in many mathematics systems that use both vectors and points, and extra value is added, and the vector/point is said to be defined in homogeneous coordinates, {x,y,z,w}. Points have a homogeneous coordinate of 1, vectors have one of 0.
This would at first seem to be just a simple way to tell vectors and points apart, but it still serves a function.
consider two points: {1,1,1,1} and {0,0,1,1}. If we wanted to find the displacement between the two points we would use subtraction:
{1,1,1,1} - {0,0,1,1} = {1,1,0,0}
This is the result that should be expected, as displacement is a vector value. The new vector now points from the first point to the second.
Attempting to add two points together is geometrically illogical, and the result here would be:
{1,1,1,1} + {0,0,1,1} = {1,1,2,2}
The homogeneous 'w' coordinate is now 2, neither a point nor a vector. However, adding a displacement to a point is still reasonable:
{1,1,1,1} + {0,0,1,0} = {1,1,2,1}
the result is still a point
also, vectors can still be safely added and subtracted, since their homogeneous coordinate is always zero.
Vector mathematics
A normalized vector is one with a magnitude of 1. To achieve this divide a vector by its length |V| (see below)
Consider two vectors here called 'V' and 'W', they are not defined in homogeneous coordinates There are several math operations that apply only to vectors such as: (these symbols are not built into c++, they are merely those that would normally appear in books on vector math)
Symbol Purpose C++ code |V| -> the length of vector V = sqrt(v.x*v.x + v.y*v.y + v.z*v.z) //Scalar V*W -> vector dot product = v.x*w.x + v.y*w.y + v.z*w.z //Scalar VxW -> vector cross product = {v.y*w.z - w.y*v.z , v.z*w.x - w.z*v.x , v.x*w.y - w.x*v.y} //Vector
These two apply only to normalized vectors:
V*W -> dot product, its result will be the cosine of the angle between the two vectors VxW -> cross product, it will result in the sine of the angle between the two vectors
Also useful to know is that the cross product of any two vectors will always be perpendicular to both vectors (unless they both point in the same or opposite directions!)
Example: the cross product of a vector pointing down the x-axis and a vector pointing down the y-axis is a vector pointing down the z-axis.
This function is commonly used to generate surface normals based upon geometry. These are later used in lighting systems.
Consider a triangle made of the points {0,0,0},{1,0,0},{0,1,0} we compute the displacements from one point to the two others. (in this case we have {0,0,0} as a point and so the points themselves are also the displacements) then we take the cross product:
{1,0,0}x{0,1,0} = {0,0,1} this also happens to be a vector pointing straight up perpendicular to the triangle