Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/vector3f.cc')
-rw-r--r--src/common/vector3f.cc14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/common/vector3f.cc b/src/common/vector3f.cc
index 3e469b6..86bdb36 100644
--- a/src/common/vector3f.cc
+++ b/src/common/vector3f.cc
@@ -1,9 +1,17 @@
-/* vector3f.h
- This file is part of the Osirion project
+/*
+ common/vector3f.cc
+ This file is part of the Osirion project and is distributed under
+ the terms of the GNU General Public License version 2
*/
+
+// project headers
#include "vector3f.h"
+
+// C++ headers
#include <cmath>
+namespace common {
+
Vector3f::Vector3f() :
x(coord[0]), y(coord[1]), z(coord[2])
{
@@ -149,3 +157,5 @@ std::istream &operator>>(std::istream & is, Vector3f & vector) {
Vector3f operator*(float scalar, const Vector3f& vector) {
return vector * scalar;
}
+
+} // namespace common