Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What is a Vector?

So is it like a point on a graph or what? It seems like its more than that though. Also what is a unit vector??

2 answers

✓ Accepted answer

You're used to working with what is called scalar values. A scalar value is just a number. It has what we call a magnitude, or a number quantifying how big it is. Say, I walk 100 meters. 100 meters is a scalar value.

A vector has not only a magnitude, but also a direction. It describes not only how far, but also which way. I walk 100 meters north-west. This describes both a magnitude, how far I've gone, and a direction.

Vectors are written as a set of numbers, depending on how many dimensions the vector exists in. For a two dimensional vector, for example, it's two values, defining an X and Y. If you draw an arrow from the origin to the XY point on a graph, this is the vector. The length of the arrow is the magnitude and the direction that it points is the direction.

A unit vector is a special type of vector that has a magnitude of exactly one. It's useful for describing a direction.

1 comment

0

Ok thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.