We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
The goal of the perpendicular vector procedure is to find a vector that is perpendicular to a given vector.
The inputs for this procedure are:
vector
direction
"positive"
"negative"
The outputs of this procedure are:
perpendicularVector
The procedure for this is as follows:
$\text{let } \vec{v} \text{ be the input vector}$ $\text{let } \vec{p} \text{ be the perpendicular vector}$
$\text{If the direction is positve:}$ $\vec{p} = (-\vec{v}_y, \vec{v}_x)$
$\text{If the direction is negative:}$ $\vec{p} = (\vec{v}_y, -\vec{v}_x)$