Specialization of the coordinate_traits for claw::math::vector_2d. More...
#include <coordinate_traits.hpp>
Public Types | |
| typedef claw::math::vector_2d< T > | coordinate_type |
| The type of the coordinate. | |
| typedef coordinate_type::value_type | value_type |
| The type of the components of the coordinate. | |
Static Public Member Functions | |
| static value_type | get_x (const coordinate_type &c) |
| Get the component of a coordinate on the x-axis. | |
| static value_type | get_y (const coordinate_type &c) |
| Get the component of a coordinate on the y-axis. | |
| static coordinate_type | make_coordinate (value_type x, value_type y) |
| Create a new coordinate from with the components sets to the provided values. | |
Specialization of the coordinate_traits for claw::math::vector_2d.
Definition at line 100 of file coordinate_traits.hpp.
| typedef claw::math::vector_2d<T> claw::math::coordinate_traits< claw::math::vector_2d< T > >::coordinate_type |
The type of the coordinate.
Definition at line 103 of file coordinate_traits.hpp.
| typedef coordinate_type::value_type claw::math::coordinate_traits< claw::math::vector_2d< T > >::value_type |
The type of the components of the coordinate.
Definition at line 106 of file coordinate_traits.hpp.
|
inlinestatic |
Get the component of a coordinate on the x-axis.
| c | The coordinate from which the component is taken. |
Definition at line 112 of file coordinate_traits.hpp.
|
inlinestatic |
Get the component of a coordinate on the y-axis.
| c | The coordinate from which the component is taken. |
Definition at line 121 of file coordinate_traits.hpp.
|
inlinestatic |
Create a new coordinate from with the components sets to the provided values.
| x | The position on the x axis. |
| y | The position on the y axis. |
Definition at line 132 of file coordinate_traits.hpp.