vecmath.cpp File Reference

#include <math.h>
#include <iostream>
#include "../include/robot.h"
#include "../include/wrapper.h"
#include "../include/vecmath.h"
#include "../include/util.h"

Defines

#define SWAP(x, y)   tmp = a[x];a[x]=a[y];a[y] = tmp;
#define ROUND(x)   rnd(x*10)/10.0)
#define RND(x)   round ? rnd(x*10)/10.0 : x

Functions

int rnd (PRECISION value)
 Rounds a value.

Define Documentation

#define RND (  )     round ? rnd(x*10)/10.0 : x

#define ROUND (  )     rnd(x*10)/10.0)

#define SWAP ( x,
 )     tmp = a[x];a[x]=a[y];a[y] = tmp;


Function Documentation

int rnd ( PRECISION  value  ) 

Rounds a value.


Generated on Mon Apr 21 23:27:41 2008 for BioloidControl by  doxygen 1.5.2