src/proto2/Terrain.hh
changeset 151 9fc900fbfa79
parent 150 5e032b540af3
child 152 89e2d078817c
equal deleted inserted replaced
150:5e032b540af3 151:9fc900fbfa79
   122      * Return normal for the given point.
   122      * Return normal for the given point.
   123      *
   123      *
   124      * @param point Point for which the normal is calculated.
   124      * @param point Point for which the normal is calculated.
   125      * @return Normal vector ((0,0) if there's no terrain)
   125      * @return Normal vector ((0,0) if there's no terrain)
   126      */
   126      */
   127     Vector getNormal(Vector point) const;
   127     Vector getNormal(Vector point, Vector prevPoint) const;
   128 
   128 
   129     /**
   129     /**
   130      * Generate random terrain.
   130      * Generate random terrain.
   131      *
   131      *
   132      * @param seed Seed for the randomnumber generator.
   132      * @param seed Seed for the randomnumber generator.