<commit_before>
#include <gainput/gainput.h>
#include <gainput/gestures/GainputRotateGesture.h>

#ifdef GAINPUT_ENABLE_ROTATE_GESTURE

#include <math.h>

namespace gainput
{

RotateGesture::RotateGesture(InputManager& manager, DeviceId device) :
	InputGesture(device),
	manager_(manager),
	rotating_(false)
{
	downButton_.buttonId = InvalidDeviceButtonId;
	xAxis_.buttonId = InvalidDeviceButtonId;
	yAxis_.buttonId = InvalidDeviceButtonId;
	downButton2_.buttonId = InvalidDeviceButtonId;
	xAxis2_.buttonId = InvalidDeviceButtonId;
	yAxis2_.buttonId = InvalidDeviceButtonId;<commit_msg>Fixed M_PI usage on Windows.<commit_after>
#include <gainput/gainput.h>
#include <gainput/gestures/GainputRotateGesture.h>

#ifdef GAINPUT_ENABLE_ROTATE_GESTURE

#define _USE_MATH_DEFINES
#include <math.h>

namespace gainput
{

RotateGesture::RotateGesture(InputManager& manager, DeviceId device) :
	InputGesture(device),
	manager_(manager),
	rotating_(false)
{
	downButton_.buttonId = InvalidDeviceButtonId;
	xAxis_.buttonId = InvalidDeviceButtonId;
	yAxis_.buttonId = InvalidDeviceButtonId;
	downButton2_.buttonId = InvalidDeviceButtonId;
	xAxis2_.buttonId = InvalidDeviceButtonId;
	yAxis2_.buttonId = InvalidDeviceButtonId;
{'fraction_non_alphanumeric': 0.09083402146985962, 'fraction_numerical': 0.00495458298926507, 'mean_word_length': 8.044776119402986, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3516533', 'n_tokens_mistral': 425, 'n_tokens_neox': 412, 'n_words': 65}