mirror of
https://github.com/g-truc/glm.git
synced 2025-04-10 07:18:54 +00:00
Fixed API for euclian, only need a vec2 parameter
This commit is contained in:
parent
a454354dfa
commit
f37af51426
2 changed files with 8 additions and 6 deletions
|
@ -50,17 +50,19 @@ namespace glm
|
|||
/// @addtogroup gtx_polar_coordinates
|
||||
/// @{
|
||||
|
||||
//! Convert Euclidean to Polar coordinates, x is the xz distance, y, the latitude and z the longitude.
|
||||
//! From GLM_GTX_polar_coordinates extension.
|
||||
/// Convert Euclidean to Polar coordinates, x is the xz distance, y, the latitude and z the longitude.
|
||||
///
|
||||
/// @see gtx_polar_coordinates
|
||||
template <typename T>
|
||||
detail::tvec3<T> polar(
|
||||
detail::tvec3<T> const & euclidean);
|
||||
|
||||
//! Convert Polar to Euclidean coordinates.
|
||||
//! From GLM_GTX_polar_coordinates extension.
|
||||
/// Convert Polar to Euclidean coordinates.
|
||||
///
|
||||
/// @see gtx_polar_coordinates
|
||||
template <typename T>
|
||||
detail::tvec3<T> euclidean(
|
||||
detail::tvec3<T> const & polar);
|
||||
detail::tvec2<T> const & polar);
|
||||
|
||||
/// @}
|
||||
}//namespace glm
|
||||
|
|
|
@ -35,7 +35,7 @@ namespace glm
|
|||
template <typename T>
|
||||
GLM_FUNC_QUALIFIER detail::tvec3<T> euclidean
|
||||
(
|
||||
detail::tvec3<T> const & polar
|
||||
detail::tvec2<T> const & polar
|
||||
)
|
||||
{
|
||||
#ifdef GLM_FORCE_RADIANS
|
||||
|
|
Loading…
Add table
Reference in a new issue