#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 RND | ( | x | ) | round ? rnd(x*10)/10.0 : x |
#define ROUND | ( | x | ) | rnd(x*10)/10.0) |
#define SWAP | ( | x, | |||
y | ) | tmp = a[x];a[x]=a[y];a[y] = tmp; |
int rnd | ( | PRECISION | value | ) |
Rounds a value.