]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/geometry.h
Update #includes that have been renamed, and remove stray ones
[r2c2.git] / source / libr2c2 / geometry.h
index 48bbd49eeb98736b5274dbd50ec91d723649b8be..67c541211fcd93c7655318dc33e6953e6e85fb28 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of R²C²
-Copyright © 2006-2010  Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
 #ifndef LIBR2C2_GEOMETRY_H_
 #define LIBR2C2_GEOMETRY_H_
 
@@ -13,21 +6,21 @@ Distributed under the GPL
 
 namespace R2C2 {
 
-struct Point
+struct Vector
 {
        float x, y, z;
 
-       Point(): x(0), y(0), z(0) { }
-       Point(float x_, float y_): x(x_), y(y_), z(0) { }
-       Point(float x_, float y_, float z_): x(x_), y(y_), z(z_) { }
+       Vector(): x(0), y(0), z(0) { }
+       Vector(float x_, float y_): x(x_), y(y_), z(0) { }
+       Vector(float x_, float y_, float z_): x(x_), y(y_), z(z_) { }
 };
 
-inline float distance(const Point &p, const Point &q)
+inline float distance(const Vector &p, const Vector &q)
 { 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)); }
 
 struct TrackPoint
 {
-       Point pos;
+       Vector pos;
        float dir;
        float grade;