OGLplus  (0.59.0) a C++ wrapper for rendering APIs

coordinates.hpp
Go to the documentation of this file.
1 #ifndef OGLPLUS_MATH_COORDINATES_HPP
9 #define OGLPLUS_MATH_COORDINATES_HPP
10 
11 #include "config.hpp"
14 
15 namespace eagine::oglp {
16 
21 
22 using math::to_cartesian;
24 
25 } // namespace eagine::oglp
26 
27 #endif // OGLPLUS_MATH_COORDINATES_HPP
auto to_unit_spherical(vector< T, 3, V > v) noexcept -> unit_spherical_coordinate< T, V >
Converts cartesian vector to unit spherical coordinate.
Definition: coordinates.hpp:65
auto to_cartesian(unit_spherical_coordinate< T, V > c) noexcept -> vector< T, 3, V >
Converts unit spherical coordinate to cartesian vector.
Definition: coordinates.hpp:53
Class representing unit spherical coordinate.
Definition: coordinates.hpp:23
math::unit_spherical_coordinate< gl_types::float_type, math_use_simd > unit_spherical_coordinate
Alias for math::unit_spherical_coordinate instantiation.
Definition: coordinates.hpp:20

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).