30#ifndef __CLAW_MATH_COORDINATE_TRAITS_HPP__
31#define __CLAW_MATH_COORDINATE_TRAITS_HPP__
Coordinates in a two dimensional space.
T value_type
The type of the values we store.
value_type x
X-coordinate.
value_type y
Y-coordinate.
T value_type
The type of the values we store.
Coordinates in a two dimensional space.
Manipulation of mathematic, geometric, etc. items.
This is the main namespace.
claw::math::coordinate_2d< T > coordinate_type
The type of the 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 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.
coordinate_type::value_type value_type
The type of the components of the coordinate.
coordinate_type::value_type value_type
The type of the components of the 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 value_type get_x(const coordinate_type &c)
Get the component of a coordinate on the x-axis.
claw::math::vector_2d< T > coordinate_type
The type of the coordinate.
static value_type get_y(const coordinate_type &c)
Get the component of a coordinate on the y-axis.
The coordinate traits provide an access to the members of the structures representing a coordinate in...