
###################
getOrthogonalVector
###################

.. js:function:: wv.getOrthogonalVector

   .. rst-class:: sig-pretty-signature
   
      | getOrthogonalVector(**v**\ : :js:class:`IPoint3 <wv.IPoint3>`\ ): :js:class:`IPoint3 <wv.IPoint3>`
   
   Computes an orthogonal vector to the given 3D vector.
   
   **Parameters**
   
   
      **v**\ : :js:class:`IPoint3 <wv.IPoint3>`
   
   
         The input vector for which to find an orthogonal vector.
   
   
   
   **Returns**\ : :js:class:`IPoint3 <wv.IPoint3>`
   
   
      An orthogonal vector to the input vector.
   
   
   .. rubric:: Examples
   
   
   .. code-block:: typescript
   
      const v = { x: 1, y: 0, z: 0 };
      const orthogonal = getOrthogonalVector(v);
      console.log(orthogonal); // { x: 0, y: 1, z: 0 }
   
   .. rubric:: Throws
   
   
   Will throw an error if the input vector is a zero vector.
   




