diff --git a/Spherical.cpp b/Spherical.cpp index 671b04c..dbbba17 100644 --- a/Spherical.cpp +++ b/Spherical.cpp @@ -54,6 +54,17 @@ template SphericalOf SphericalOf::FromVector3(Vector3 v) { } } +/** + * @brief Converts spherical coordinates to a 3D vector. + * + * This function converts the spherical coordinates represented by the + * SphericalOf object to a 3D vector (Vector3). The conversion is based + * on the distance and direction (vertical and horizontal angles) of the + * spherical coordinates. + * + * @tparam T The type of the distance and direction values. + * @return Vector3 The 3D vector representation of the spherical coordinates. + */ template Vector3 SphericalOf::ToVector3() const { float verticalRad = (pi / 2) - this->direction.vertical.InRadians(); float horizontalRad = this->direction.horizontal.InRadians();