1 #ifndef LIBR2C2_GEOMETRY_H_
2 #define LIBR2C2_GEOMETRY_H_
13 Vector(): x(0), y(0), z(0) { }
14 Vector(float x_, float y_): x(x_), y(y_), z(0) { }
15 Vector(float x_, float y_, float z_): x(x_), y(y_), z(z_) { }
18 inline float distance(const Vector &p, const Vector &q)
19 { return sqrt((p.x-q.x)*(p.x-q.x) + (p.y-q.y)*(p.y-q.y) + (p.z-q.z)*(p.z-q.z)); }
27 TrackPoint(): dir(0), grade(0) { }