Go to the documentation of this file.
30 #ifndef __CLAW_MATH_COORDINATE_TRAITS_HPP__
31 #define __CLAW_MATH_COORDINATE_TRAITS_HPP__
46 template<
typename C >
142 #endif // __CLAW_MATH_COORDINATE_TRAITS_HPP__
claw::math::vector_2d< T > coordinate_type
The type of the coordinate.
value_type y
Y-coordinate.
claw::math::coordinate_2d< T > coordinate_type
The type of the coordinate.
T value_type
The type of the values we store.
This is the main namespace.
coordinate_type::value_type value_type
The type of the components of the coordinate.
Coordinates in a two dimensional space.
The coordinate traits provide an access to the members of the structures representing a coordinate in...
coordinate_type::value_type value_type
The type of the components of the coordinate.
Coordinates in a two dimensional space.
static value_type get_y(const coordinate_type &c)
Get the component of a coordinate on the y-axis.
static value_type get_y(const coordinate_type &c)
Get the component of a coordinate on the y-axis.
static value_type get_x(const coordinate_type &c)
Get the component of a coordinate on the x-axis.
static value_type get_x(const coordinate_type &c)
Get the component of a coordinate on the x-axis.
value_type x
X-coordinate.
static coordinate_type make_coordinate(value_type x, value_type y)
Create a new coordinate from with the components sets to the provided values.
static coordinate_type make_coordinate(value_type x, value_type y)
Create a new coordinate from with the components sets to the provided values.
T value_type
The type of the values we store.