Constants


There are a few constants defined in the framework.

// Math consts 
constexpr const float PI{ 3.14159265358979323846f }; // Math &pi. 
constexpr const float Tolerance{ 0.001f }; // Used for comparison 
// Since 7.0.0 
constexpr const float DoublePI{ PI * 2 }; // 2 * PI
constexpr const float HalfPI{ PI / 2 }; // PI / 2
// Since 8.0.0 
constexpr const double dTolerance{ 0.000001 }; // Double precision tolerance 
constexpr const double dPI{ 3.14159265358979323846 }; // Double precision PI 
constexpr const double dDoublePI{ dPI * 2 }; // Double precision 2 * PI 
constexpr const double dHalfPI{ dPI / 2 }; // Double precision PI / 2 

// Default settings 
extern const Matrix Identity; // Identity matrix 
constexpr const float ScrollInterval{ 0.1f }; // Default scroll interval 
// Since 7.0.0 
constexpr const int MaxPolygonPoints{ 3000 }; // Maximum number of points in polygon which renderers will draw(some renderers may use greater limits). 

// Property handlers names 
extern const String PropertyHandlerBool;
extern const String PropertyHandlerColor;
extern const String PropertyHandlerEnum;
extern const String PropertyHandlerFloat;
extern const String PropertyHandlerFont;
extern const String PropertyHandlerGradient;
extern const String PropertyHandlerImage;
extern const String PropertyHandlerImageList;
extern const String PropertyHandlerInteger;
extern const String PropertyHandlerMask;
extern const String PropertyHandlerPoint;
extern const String PropertyHandlerPointB;
extern const String PropertyHandlerPointF;
extern const String PropertyHandlerRect;
extern const String PropertyHandlerRectB;
extern const String PropertyHandlerRectC;
extern const String PropertyHandlerRectF;
extern const String PropertyHandlerString;
extern const String PropertyHandlerStyle;
extern const String PropertyHandlerText;
extern const String PropertyHandlerTransform;
extern const String PropertyHandlerMatrix;
extern const String PropertyHandlerHotkey;
extern const String PropertyHandlerHotkeyList;
// Since 7.0.0 
extern const String PropertyHandlerBoolArray;
extern const String PropertyHandlerColorArray;
extern const String PropertyHandlerIntegerArray;
extern const String PropertyHandlerFloatArray;
// Since 8.0.0 
extern const String PropertyHandlerInt64;
extern const String PropertyHandlerDouble;
extern const String PropertyHandlerPointL;
extern const String PropertyHandlerPointD;
extern const String PropertyHandlerRectL;
extern const String PropertyHandlerRectD;

// Translate categories 
extern const String TranslateCategoryColors; // Defined as L"Colors" 
extern const String TranslateCategoryKeys; // Defined as L"Keys" 
extern const String TranslateCategoryCalendar; // Defined as L"Calendar". Since 5.0.0 

// Months(Since 5.0.0) 
namespace months
{
    extern const String January; // Defined as L"January" 
    extern const String February; // Defined as L"February" 
    extern const String March; // Defined as L"March" 
    extern const String April; // Defined as L"April" 
    extern const String May; // Defined as L"May" 
    extern const String June; // Defined as L"June" 
    extern const String July; // Defined as L"July" 
    extern const String August; // Defined as L"August" 
    extern const String September; // Defined as L"September" 
    extern const String October; // Defined as L"October" 
    extern const String November; // Defined as L"November" 
    extern const String December; // Defined as L"December" 
    extern const std::vector<String> Names; // List of month names 
    extern const String Jan; // Defined as L"Jan" 
    extern const String Feb; // Defined as L"Feb" 
    extern const String Mar; // Defined as L"Mar" 
    extern const String Apr; // Defined as L"Apr" 
    extern const String Jun; // Defined as L"Jun" 
    extern const String Jul; // Defined as L"Jul" 
    extern const String Aug; // Defined as L"Aug" 
    extern const String Sep; // Defined as L"Sep" 
    extern const String Oct; // Defined as L"Oct" 
    extern const String Nov; // Defined as L"Nov" 
    extern const String Dec; // Defined as L"Dec" 
    extern const std::vector<String> ShortNames; // List of month short names 
}

// Days of week(Since 5.0.0) 
namespace days
{
    extern const String Monday; // Defined as L"Monday" 
    extern const String Tuesday; // Defined as L"Tuesday" 
    extern const String Wednesday; // Defined as L"Wednesday" 
    extern const String Thursday; // Defined as L"Thursday" 
    extern const String Friday; // Defined as L"Friday" 
    extern const String Saturday; // Defined as L"Saturday" 
    extern const String Sunday; // Defined as L"Sunday" 
    extern const std::vector<String> Names; // List of day names 
    extern const String Mo; // Defined as L"Mo" 
    extern const String Tu; // Defined as L"Tu" 
    extern const String We; // Defined as L"We" 
    extern const String Th; // Defined as L"Th" 
    extern const String Fr; // Defined as L"Fr" 
    extern const String Sa; // Defined as L"Sa" 
    extern const String Su; // Defined as L"Su" 
    extern const std::vector<String> ShortNames; // List of day short names 
    extern const String Today; // Defined as L"Today" 
}
Namespace: nitisa
Include: Nitisa/Core/Consts.h