Commit 7ef25c01 authored by Luis Peñaranda's avatar Luis Peñaranda

corrected constants of pi and pi/2

parent 5d488ffc
......@@ -22,10 +22,10 @@
#define VERT_SHADER_FILE "test_vertex_shader.vert"
#define FRAG_SHADER_FILE "fragment_shader.frag"
#define CONST_PI 3.141592653589793238462
#define CONST_PI_2 1.57079632679489661923
#define CONST_PI_F 3.14159265358979f
#define CONST_PI_2_F 1.570796326794897f // TODO: check this one
#define CONST_PI (0x1.921fb54442d18p+1)
#define CONST_PI_2 (0x1.921fb54442d18p+0)
#define CONST_PI_F (0x1.921fb6p+1)
#define CONST_PI_2_F (0x1.921fb6p+0)
OpenGLCanvas::OpenGLCanvas(QWidget *parent) :
QGLWidget(parent)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment