Can a vector have zero component along a line and still have nonzero magnitude?

A non-zero vector has zero component along the line perpendicular to it. For example, consider the 2D vector 3i+0j, it has zero component along y direction, but its magnitude is equal to 3. Also, whenever we take a component of a vector along a line it is times the magnitude of vector, but when θ =90°, and the component becomes zero.


1