From 4e1977c17a69724c70d267b569fd3189a4dd2ccd Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Wed, 9 Jan 2013 22:55:03 +0100 Subject: [PATCH] [DEV] add degree to rad convert macro --- etk/math/Matrix4.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etk/math/Matrix4.h b/etk/math/Matrix4.h index bf966b7..0ea8418 100644 --- a/etk/math/Matrix4.h +++ b/etk/math/Matrix4.h @@ -13,6 +13,9 @@ #include #include +#define DEG_TO_RAD(a) ((a)*M_PI/180.0f) +#define RAD_TO_DEG(a) ((a)*180.0f/M_PI) + namespace etk { class Matrix4