From 72273d14692a861b07b8ab757e16b7673346dc84 Mon Sep 17 00:00:00 2001 From: Philip Rosedale Date: Thu, 10 Oct 2013 10:14:35 -0700 Subject: [PATCH] indent --- interface/src/Field.h | 44 +++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/interface/src/Field.h b/interface/src/Field.h index a5d4e4c963..c85c3d33a4 100644 --- a/interface/src/Field.h +++ b/interface/src/Field.h @@ -19,28 +19,28 @@ const int FIELD_ELEMENTS = 1000; /// Field is a lattice of vectors uniformly distributed in 3D with FIELD_ELEMENTS^(1/3) per side class Field { - public: - struct FieldElement { - glm::vec3 val; - glm::vec3 center; - glm::vec3 fld; - } _field[FIELD_ELEMENTS]; - - Field(float worldSize, float coupling); - /// The field value at a position in space, given simply as the value of the enclosing cell - int value(float *ret, float *pos); - /// Visualize the field as vector lines drawn at each center - void render(); - /// Add to the field value cell enclosing a location - void add(float* add, float *loc); - /// A particle with a position and velocity interacts with the field given the coupling - /// constant passed when creating the field. - void interact(float deltaTime, const glm::vec3& pos, glm::vec3& vel); - /// Field evolves over timestep - void simulate(float deltaTime); - private: - float _worldSize; - float _coupling; +public: + struct FieldElement { + glm::vec3 val; + glm::vec3 center; + glm::vec3 fld; + } _field[FIELD_ELEMENTS]; + + Field(float worldSize, float coupling); + /// The field value at a position in space, given simply as the value of the enclosing cell + int value(float *ret, float *pos); + /// Visualize the field as vector lines drawn at each center + void render(); + /// Add to the field value cell enclosing a location + void add(float* add, float *loc); + /// A particle with a position and velocity interacts with the field given the coupling + /// constant passed when creating the field. + void interact(float deltaTime, const glm::vec3& pos, glm::vec3& vel); + /// Field evolves over timestep + void simulate(float deltaTime); +private: + float _worldSize; + float _coupling; }; #endif