Manipulation of mathematic, geometric, etc. items. More...
Classes | |
class | box_2d |
A rectangle represented by two points in a 2D space. More... | |
class | coordinate_2d |
Coordinates in a two dimensional space. More... | |
class | line_2d |
A straight line in a two dimensional space. More... | |
class | ordered_set |
A class to manage sets of ordered items. More... | |
class | rectangle |
A class representing a rectangle by his x,y coordinates, width and height. More... | |
class | vector_2d |
Two dimensional vector. More... | |
Functions | |
template<typename T > | |
coordinate_2d< T > | operator- (const coordinate_2d< T > &that) |
Unary minus. | |
template<typename T , typename U > | |
coordinate_2d< T > | operator* (U v, const coordinate_2d< T > &self) |
Multiply coordinates. |
Manipulation of mathematic, geometric, etc. items.
claw::math::coordinate_2d< T > claw::math::operator* | ( | U | v, | |
const coordinate_2d< T > & | self | |||
) | [inline] |
Multiply coordinates.
v | The multiplicator. | |
self | The coordinates to multiply. |
Definition at line 273 of file coordinate_2d.tpp.
claw::math::coordinate_2d< T > claw::math::operator- | ( | const coordinate_2d< T > & | that | ) | [inline] |
Unary minus.
that | The operand... |
Definition at line 260 of file coordinate_2d.tpp.
References claw::math::coordinate_2d< T >::x, and claw::math::coordinate_2d< T >::y.
00261 { 00262 return claw::math::coordinate_2d<T>(-that.x, -that.y); 00263 } // operator-() [coordinate_2d]