Back to index

easystroke  0.5.5.1
Public Member Functions | Public Attributes
Stroke::Point Struct Reference

#include <gesture.h>

List of all members.

Public Member Functions

Point operator+ (const Point &p)
Point operator- (const Point &p)
Point operator* (const double a)
template<class Archive >
void serialize (Archive &ar, const unsigned int version)

Public Attributes

double x
double y

Detailed Description

Definition at line 54 of file gesture.h.


Member Function Documentation

Point Stroke::Point::operator* ( const double  a) [inline]

Definition at line 65 of file gesture.h.

                                              {
                     Point product = { x * a, y * a };
                     return product;
              }
Point Stroke::Point::operator+ ( const Point p) [inline]

Definition at line 57 of file gesture.h.

                                              {
                     Point sum = { x + p.x, y + p.y };
                     return sum;
              }
Point Stroke::Point::operator- ( const Point p) [inline]

Definition at line 61 of file gesture.h.

                                              {
                     Point sum = { x - p.x, y - p.y };
                     return sum;
              }
template<class Archive >
void Stroke::Point::serialize ( Archive &  ar,
const unsigned int  version 
) [inline]

Definition at line 69 of file gesture.h.

                                                                                               {
                     ar & x; ar & y;
                     if (version == 0) {
                            double time;
                            ar & time;
                     }
              }

Here is the call graph for this function:


Member Data Documentation

Definition at line 55 of file gesture.h.

Definition at line 56 of file gesture.h.


The documentation for this struct was generated from the following file: