From my physics studies a vector is similar to an arrow, it has, in 3-dimensional space, 3 coordinates (x,y,z), a magnitude, a direction (cosines). In three.js you can define Vector3 just by 3 coordinates. Is in three.js a Vector3 object like a point in space?
Best How To :
In three.js, the
Vector3 class can be interpreted as representing either a 3D point, or a 3D direction vector emanating from the origin.
Be careful, though. Direction vectors, when used as arguments in three.js methods, are assumed to be normalized -- that is, of unit length.
three.js has a method for that:
By the way, there is also the
Ray class, which represents the construct from your physics studies.