Changeset 4184 in orxonox.OLD for orxonox/branches/physics/src/util/physics/fields/twirl.cc
- Timestamp:
- May 14, 2005, 10:27:47 PM (19 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/physics/src/util/physics/fields/twirl.cc
r4182 r4184 16 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 17 17 18 #include " gravity.h"18 #include "twirl.h" 19 19 20 20 using namespace std; … … 25 25 \todo this constructor is not jet implemented - do it 26 26 */ 27 Gravity::Gravity()27 Twirl::Twirl () 28 28 { 29 this->setClassName (" Gravity");29 this->setClassName ("Twirl"); 30 30 } 31 31 … … 35 35 36 36 */ 37 Gravity::~Gravity()37 Twirl::~Twirl () 38 38 { 39 39 // delete what has to be deleted here … … 41 41 42 42 /** 43 \brief calculates the Gravityon any point in space44 \param data The Position of the Point in space to attache gravityto.43 \brief calculates the Twirl on any point in space 44 \param data The Position of the Point in space to attache twirl to. 45 45 \returns The force. 46 46 */ 47 Vector Gravity::calcForce(const Vector& data) const47 Vector Twirl::calcForce(const Vector& data) const 48 48 { 49 return /*(this->getAbsDir().apply(Vector(0,1,0)))*/ Vector(0,-1,0) * this->getMagnitude(); 49 return /*this->getAbsDir()*/ Vector(0,1,0).cross(this->getAbsCoor() - data) 50 * this->getMagnitude(); 50 51 } 51 52
Note: See TracChangeset
for help on using the changeset viewer.