#include "Isosurface.h"

Vector3D Isosurface::gradientAt(float x, float y, float z) const
{
    const float epsilon = 0.0001;

    float dx = valueAt(x + epsilon, y, z) - valueAt(x - epsilon, y, z);
    float dy = valueAt(x, y + epsilon, z) - valueAt(x, y - epsilon, z);
    float dz = valueAt(x, y, z + epsilon) - valueAt(x, y, z - epsilon);

    Vector3D result = { dx, dy, dz };
    normalize(result);
    return result;
}

Isosurface::~Isosurface() {
}

#include "Isosurface.h"

Vector3D Isosurface::gradientAt(float x, float y, float z) const
{
    const float epsilon = 0.0001;

    float dx = valueAt(x + epsilon, y, z) - valueAt(x - epsilon, y, z);
    float dy = valueAt(x, y + epsilon, z) - valueAt(x, y - epsilon, z);
    float dz = valueAt(x, y, z + epsilon) - valueAt(x, y, z - epsilon);

    Vector3D result = { dx, dy, dz };
    normalize(result);
    return result;
}

Isosurface::~Isosurface()
{
}

Fix a brace style inconsistency
Fix a brace style inconsistency
