Vectors
Vectors values can't be expressed as a single number, but instead combine multiple pieces of information - e.g. velocity (which refers to the speed something is moving at, as well as the direction it is moving in).
Vectors are values which cannot be expressed as a single number (a scalar).
For example, velocity is a vector which measures both the magnitude (speed) an object is moving at, as well as its direction, and is written in a form similar to 5 meters per second northeast
. Displacement and force are other common vectors in physics which have both magnitudes and directions.
These stand in contrast to measures such as speed by itself, a scalar, which can simply be written as 5 meters per second
(as it contains only the magnitude of a thing, and no directional information).
However, vectors don't have to contain magnitude and direction, but rather any two or more kinds of information, combined. Common sorts of vectors include tuples (such as a color expressed as an RGB value) and arrays.
Ordinary users of HASH don't need to know what vectors are, and this information is provided as a reference for advanced type modelers only.Create a free account
Sign up to try HASH out for yourself, and see what all the fuss is about
By signing up you agree to our terms and conditions and privacy policy