started removing KLib related code:
- assertions - distributions new helper methods worked on stairs worked on grid-walkers worked on navigation
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#include <cmath>
|
||||
#include "../geo/Point3.h"
|
||||
|
||||
#include <KLib/Assertions.h>
|
||||
#include "../Assertions.h"
|
||||
|
||||
struct GridPoint {
|
||||
|
||||
@@ -46,7 +46,7 @@ struct GridPoint {
|
||||
|
||||
/** read-only array access */
|
||||
float operator [] (const int idx) const {
|
||||
_assertBetween(idx, 0, 2, "index out of bounds");
|
||||
Assert::isBetween(idx, 0, 2, "index out of bounds");
|
||||
if (0 == idx) {return x_cm;}
|
||||
if (1 == idx) {return y_cm;}
|
||||
{return z_cm;}
|
||||
|
||||
Reference in New Issue
Block a user