rot.h
Go to the documentation of this file.
1 #pragma once
2 
3 #define _USE_MATH_DEFINES
4 #include <math.h>
5 
6 inline
7 float3x3 rotx( float a )
8 {
9  double rad = a * M_PI / 180.;
10  return {
11  { 1, 0, 0 },
12  { 0, float(cos(rad)), float(-sin(rad)) },
13  { 0, float(sin(rad)), float(cos(rad)) }
14  };
15 }
16 
17 
18 
19 
GLboolean GLboolean GLboolean GLboolean a
float3x3 rotx(float a)
Definition: rot.h:7


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:40