mirror of
https://github.com/OpenMW/openmw.git
synced 2026-02-05 19:58:37 +00:00
Print angles in degrees in esmtool
This commit is contained in:
parent
cd97bc66c3
commit
f5371518c3
2 changed files with 14 additions and 6 deletions
|
|
@ -11,6 +11,8 @@
|
|||
|
||||
#include <boost/program_options.hpp>
|
||||
|
||||
#include <osg/Math>
|
||||
|
||||
#include <components/esm/format.hpp>
|
||||
#include <components/esm3/esmreader.hpp>
|
||||
#include <components/esm3/esmwriter.hpp>
|
||||
|
|
@ -251,7 +253,8 @@ namespace
|
|||
std::cout << " ID: " << ref.mRefID << '\n';
|
||||
std::cout << " Position: (" << ref.mPos.pos[0] << ", " << ref.mPos.pos[1] << ", " << ref.mPos.pos[2]
|
||||
<< ")\n";
|
||||
std::cout << " Rotation: (" << ref.mPos.rot[0] << ", " << ref.mPos.rot[1] << ", " << ref.mPos.rot[2]
|
||||
std::cout << " Rotation: (" << osg::RadiansToDegrees(ref.mPos.rot[0]) << ", "
|
||||
<< osg::RadiansToDegrees(ref.mPos.rot[1]) << ", " << osg::RadiansToDegrees(ref.mPos.rot[2])
|
||||
<< ")\n";
|
||||
if (ref.mScale != 1.f)
|
||||
std::cout << " Scale: " << ref.mScale << '\n';
|
||||
|
|
@ -279,8 +282,9 @@ namespace
|
|||
{
|
||||
std::cout << " Destination position: (" << ref.mDoorDest.pos[0] << ", " << ref.mDoorDest.pos[1]
|
||||
<< ", " << ref.mDoorDest.pos[2] << ")\n";
|
||||
std::cout << " Destination rotation: (" << ref.mDoorDest.rot[0] << ", " << ref.mDoorDest.rot[1]
|
||||
<< ", " << ref.mDoorDest.rot[2] << ")\n";
|
||||
std::cout << " Destination rotation: (" << osg::RadiansToDegrees(ref.mDoorDest.rot[0]) << ", "
|
||||
<< osg::RadiansToDegrees(ref.mDoorDest.rot[1]) << ", "
|
||||
<< osg::RadiansToDegrees(ref.mDoorDest.rot[2]) << ")\n";
|
||||
if (!ref.mDestCell.empty())
|
||||
std::cout << " Destination cell: " << ref.mDestCell << '\n';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
#include <numeric>
|
||||
#include <sstream>
|
||||
|
||||
#include <osg/Math>
|
||||
|
||||
#include <components/esm3/cellstate.hpp>
|
||||
#include <components/esm3/esmreader.hpp>
|
||||
#include <components/misc/strings/conversion.hpp>
|
||||
|
|
@ -176,8 +178,9 @@ namespace
|
|||
{
|
||||
std::cout << std::format(" Destination Position: ({:12.3f},{:12.3f},{:12.3f})\n", dest.mPos.pos[0],
|
||||
dest.mPos.pos[1], dest.mPos.pos[2]);
|
||||
std::cout << std::format(" Destination Rotation: ({:9.6f},{:9.6f},{:9.6f})\n", dest.mPos.rot[0],
|
||||
dest.mPos.rot[1], dest.mPos.rot[2]);
|
||||
std::cout << std::format(" Destination Rotation: ({:9.6f},{:9.6f},{:9.6f})\n",
|
||||
osg::RadiansToDegrees(dest.mPos.rot[0]), osg::RadiansToDegrees(dest.mPos.rot[1]),
|
||||
osg::RadiansToDegrees(dest.mPos.rot[2]));
|
||||
if (!dest.mCellName.empty())
|
||||
std::cout << " Destination Cell: " << dest.mCellName << std::endl;
|
||||
}
|
||||
|
|
@ -1308,7 +1311,8 @@ namespace EsmTool
|
|||
std::cout << " Hour:" << mData.mCellState.mLastRespawn.mHour << std::endl;
|
||||
if (mData.mCellState.mHasFogOfWar)
|
||||
{
|
||||
std::cout << " North Marker Angle: " << mData.mFogState.mNorthMarkerAngle << std::endl;
|
||||
std::cout << " North Marker Angle: " << osg::RadiansToDegrees(mData.mFogState.mNorthMarkerAngle)
|
||||
<< std::endl;
|
||||
std::cout << " Bounds:" << std::endl;
|
||||
std::cout << " Min X: " << mData.mFogState.mBounds.mMinX << std::endl;
|
||||
std::cout << " Min Y: " << mData.mFogState.mBounds.mMinY << std::endl;
|
||||
|
|
|
|||
Loading…
Reference in a new issue