# HG changeset patch # User saiam # Date 1228054677 0 # Node ID 329953407fdc132403c7fd85eeedabd8e537ee11 # Parent fc572ad7326aaa0021d0aaaddd689cb55d83b7fa Updated header Terrain.hh diff -r fc572ad7326a -r 329953407fdc src/proto2/Terrain.cc --- a/src/proto2/Terrain.cc Sun Nov 30 14:01:06 2008 +0000 +++ b/src/proto2/Terrain.cc Sun Nov 30 14:17:57 2008 +0000 @@ -124,6 +124,7 @@ } + // TODO: This could better :) // TODO: And this need some cleaning :) void Terrain::generateTerrain(int seed) { diff -r fc572ad7326a -r 329953407fdc src/proto2/Terrain.hh --- a/src/proto2/Terrain.hh Sun Nov 30 14:01:06 2008 +0000 +++ b/src/proto2/Terrain.hh Sun Nov 30 14:17:57 2008 +0000 @@ -111,14 +111,14 @@ * @param point Point where the tangent is calculated * @param n Accuracy in pixels */ - Vector getTangent(Vector point, int n = 1) const; + Vector getTangent(Vector prevPoint, Vector hitPoint, int n = 1) const; /** * Get tangent for the given point. * * @param point Point where the tangent is calculated * @param a Accuracy in scaled units. */ - Vector getTangent(Vector point, float a) const; + Vector getTangent(Vector prevPoint, Vector hitPoint, float a) const; /** * Return normal for the given point. @@ -126,14 +126,14 @@ * @param point Point for which the normal is calculated. * @param n Accuracy in pixels */ - Vector getNormal(Vector point, int n = 1) const; + Vector getNormal(Vector prevPoint, Vector hitPoint, int n = 1) const; /** * Return a normal for the given point. * * @param point Point for which the normal is calculated. * @param a Accuracy in scaled units */ - Vector getNormal(Vector point, float a) const; + Vector getNormal(Vector prevPoint, Vector hitPoint, float a) const; /** * Generate random terrain.