claw::math Namespace Reference

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.

Detailed Description

Manipulation of mathematic, geometric, etc. items.


Function Documentation

template<typename T , typename U >
claw::math::coordinate_2d< T > claw::math::operator* ( v,
const coordinate_2d< T > &  self 
) [inline]

Multiply coordinates.

Parameters:
v The multiplicator.
self The coordinates to multiply.

Definition at line 273 of file coordinate_2d.tpp.

00274 {
00275   return self * v;
00276 } // operator*() [coordinate_2d]

template<typename T >
claw::math::coordinate_2d< T > claw::math::operator- ( const coordinate_2d< T > &  that  )  [inline]

Unary minus.

Parameters:
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]


Generated on 9 Nov 2009 for CLAW Library (a C++ Library Absolutely Wonderful) by  doxygen 1.6.1