tahoma2d/toonz/sources/toonzlib/cleanupcommon.h
Shinya Kitaoka d1f6c4e95b REFACTORING: Add final specifiers (#537)
* add final specifiers

* apply clang-format

* fix for macOS
2016-06-29 15:17:12 +09:00

24 lines
480 B
C++

#pragma once
#ifndef CLEANUPCOMMON_INCLUDED
#define CLEANUPCOMMON_INCLUDED
#include "texception.h"
// unit conversion
inline double inToPixel(double val, double dpi) { return val * dpi; }
inline double mmToPixel(double val, double dpi) {
return (val * dpi) * (1.0 / 25.4);
}
class TCleanupException final : public TException {
public:
TCleanupException(const char *msg) : TException(msg) {}
~TCleanupException() {}
};
#ifndef MAX_DOT
#define MAX_DOT 500
#endif
#endif