Back to index

extremetuxracer  0.5beta
Public Member Functions | Public Attributes | Friends
pp::Vec2d Class Reference

#include <vec2d.h>

List of all members.

Public Member Functions

 Vec2d (void)
 Vec2d (const double x, const double y)
 Vec2d (const double *v)

Public Attributes

double x
double y


Vec2d operator+ (const Vec2d &vec1, const Vec2d &vec2)
Vec2d operator- (const Vec2d &vec1, const Vec2d &vec2)

Detailed Description

Definition at line 28 of file vec2d.h.

Constructor & Destructor Documentation

pp::Vec2d::Vec2d ( void  )

Definition at line 27 of file vec2d.cpp.

 : x(0.0), y(0.0)
pp::Vec2d::Vec2d ( const double  x,
const double  y 

Definition at line 32 of file vec2d.cpp.

 : x(x), y(y)
pp::Vec2d::Vec2d ( const double *  v)

Definition at line 37 of file vec2d.cpp.

 : x(v[0]), y(v[1])

Friends And Related Function Documentation

Vec2d operator+ ( const Vec2d vec1,
const Vec2d vec2 
) [friend]

Definition at line 43 of file vec2d.cpp.

       return Vec2d(vec1.x+vec2.x,vec1.y+vec2.y);
Vec2d operator- ( const Vec2d vec1,
const Vec2d vec2 
) [friend]

Definition at line 49 of file vec2d.cpp.

       return Vec2d(vec1.x-vec2.x,vec1.y-vec2.y);

Member Data Documentation

double pp::Vec2d::x

Definition at line 35 of file vec2d.h.

double pp::Vec2d::y

Definition at line 36 of file vec2d.h.

The documentation for this class was generated from the following files: