Claw  1.7.3
Classes | Functions
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...
struct  coordinate_traits< claw::math::coordinate_2d< T > >
 Specialization of the coordinate_traits for claw::math::coordinate_2d. More...
struct  coordinate_traits< claw::math::vector_2d< T > >
 Specialization of the coordinate_traits for claw::math::vector_2d. More...
class  curve
 Implementation of the Bézier curve. 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 
)

Multiply coordinates.

Parameters
vThe multiplicator.
selfThe coordinates to multiply.

Definition at line 305 of file coordinate_2d.tpp.

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

Unary minus.

Parameters
thatThe operand...

Definition at line 292 of file coordinate_2d.tpp.

References claw::math::coordinate_2d< T >::x, and claw::math::coordinate_2d< T >::y.