Perpendicular vector from $(\cos(\theta)x, \sin(\theta)x)$

522 Views Asked by At

Hi want to know how to compute a perpendicular vector from a vector that contains non-integer-- for example if my vector is like $(cos(\theta)x, sin(\theta)x)$, is it possible to compute one vector that is perpendicular to it?

1

There are 1 best solutions below

2
On

In 2 dimensions, $(a,b)$ and $(-b, a)$ (or $(b, -a)$) are perpendicular. You can check it with the dot product: $$(a, b) \cdot (-b, a)=a*(-b)+b*a=-ab+ba=0$$