.. # split from OEMathFunctions.rst:203

.. include:: ../substitutions

.. oe:namespace:: OEMath

.. meta::
   :keywords: OEGeom3DAngleCoord

.. oe:function:: OEGeom3DAngleCoord

   .. oe:language:: c++ java csharp

      .. oe:api::

         template<class T>
         void OEGeom3DAngleCoord(T* dst, const T* center, const T* r1, T ang,
                                 T len)
         template<class T>
         void OEGeom3DAngleCoord(T* dst, const T* center, const T* r1,
                                 const T* n, T ang, T len)

   .. oe:language:: python

      .. oe:api:: python

         OEGeom3DAngleCoord(dst: OEFloatArray, center: OEFloatArray,
                            r1: OEFloatArray, ang: float, len: float) -> None
         OEGeom3DAngleCoord(dst: OEDoubleArray, center: OEDoubleArray,
                            r1: OEDoubleArray, ang: float, len: float) -> None
         OEGeom3DAngleCoord(dst: OEFloatArray, center: OEFloatArray,
                            r1: OEFloatArray, n: OEFloatArray, ang: float,
                            len: float) -> None
         OEGeom3DAngleCoord(dst: OEDoubleArray, center: OEDoubleArray,
                            r1: OEDoubleArray, n: OEDoubleArray, ang: float,
                            len: float) -> None

   Calculates cartesian coordinate point ``dst`` that has a distance of ``len`` from the
   point ``center``, and the vector :math:`(dst-center)` forms an angle of ``ang`` radians
   with the vector :math:`(r1-center)`.  The  second form places it on (or to the closest
   possible to) the plane defined by the normal ``n``.  The first form chooses 
   the normal to be either the ``x`` or the ``y`` coordinate based on the proximity of
   :math:`(r1-center)` to these axes.
