Specialization of the coordinate_traits for claw::math::coordinate_2d.
More...
#include <coordinate_traits.hpp>
template<typename T>
struct claw::math::coordinate_traits< claw::math::coordinate_2d< T > >
Specialization of the coordinate_traits for claw::math::coordinate_2d.
- Author
- Julien Jorge
Definition at line 55 of file coordinate_traits.hpp.
◆ get_x()
Get the component of a coordinate on the x-axis.
- Parameters
-
c | The coordinate from which the component is taken. |
Definition at line 67 of file coordinate_traits.hpp.
◆ get_y()
Get the component of a coordinate on the y-axis.
- Parameters
-
c | The coordinate from which the component is taken. |
Definition at line 76 of file coordinate_traits.hpp.
◆ make_coordinate()
Create a new coordinate from with the components sets to the provided values.
- Parameters
-
x | The position on the x axis. |
y | The position on the y axis. |
Definition at line 87 of file coordinate_traits.hpp.
The documentation for this struct was generated from the following file: