Changeset 9770 for code/branches/radarDreiD/src
- Timestamp:
- Nov 11, 2013, 1:55:23 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/radarDreiD/src/libraries/util/Math.cc
r9749 r9770 211 211 212 212 // new coordinate system base y_coordinate 213 orxonox::Vector3 myside = mydirection.crossProduct(-myorthonormal);213 orxonox::Vector3 myside = -(mydirection.crossProduct(myorthonormal)); 214 214 215 215 // inverse of the transform matrix … … 247 247 248 248 // project vector for the rotated 3DMap on screen 249 float xcoordinate = -distance.y; // -; cause in room myside points to the left, on screen x to the right250 float ycoordinate = (distance.x*sin(mapangle)+distance. z*cos(mapangle));249 float xcoordinate = distance.z; // z; cause z direction is to the side 250 float ycoordinate = (distance.x*sin(mapangle)+distance.y*cos(mapangle)); 251 251 return orxonox::Vector2(xcoordinate , ycoordinate); 252 252 }
Note: See TracChangeset
for help on using the changeset viewer.