From 2877f4eda3d1b0c7431039e3142ecf1a282a34b1 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Tue, 21 Aug 2018 20:40:38 +0500 Subject: Update glm to 0.9.9.0 --- external/include/glm/gtx/polar_coordinates.hpp | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'external/include/glm/gtx/polar_coordinates.hpp') diff --git a/external/include/glm/gtx/polar_coordinates.hpp b/external/include/glm/gtx/polar_coordinates.hpp index c647c0f..b8421db 100644 --- a/external/include/glm/gtx/polar_coordinates.hpp +++ b/external/include/glm/gtx/polar_coordinates.hpp @@ -6,15 +6,19 @@ /// @defgroup gtx_polar_coordinates GLM_GTX_polar_coordinates /// @ingroup gtx /// -/// @brief Conversion from Euclidean space to polar space and revert. +/// Include to use the features of this extension. /// -/// need to be included to use these functionalities. +/// Conversion from Euclidean space to polar space and revert. #pragma once // Dependency: #include "../glm.hpp" +#ifndef GLM_ENABLE_EXPERIMENTAL +# error "GLM: GLM_GTX_polar_coordinates is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it." +#endif + #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED) # pragma message("GLM: GLM_GTX_polar_coordinates extension included") #endif @@ -27,16 +31,16 @@ namespace glm /// Convert Euclidean to Polar coordinates, x is the xz distance, y, the latitude and z the longitude. /// /// @see gtx_polar_coordinates - template - GLM_FUNC_DECL tvec3 polar( - tvec3 const & euclidean); + template + GLM_FUNC_DECL vec<3, T, Q> polar( + vec<3, T, Q> const& euclidean); /// Convert Polar to Euclidean coordinates. /// /// @see gtx_polar_coordinates - template - GLM_FUNC_DECL tvec3 euclidean( - tvec2 const & polar); + template + GLM_FUNC_DECL vec<3, T, Q> euclidean( + vec<2, T, Q> const& polar); /// @} }//namespace glm -- cgit v1.2.3