vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
normal.h
Go to the documentation of this file.
1 #ifndef NORMAL_H
2 #define NORMAL_H
3 
5 #include "functions.h"
6 
7 using namespace osg;
8 using namespace vrecko;
9 
10 //recompute all normals in object
12 
13 //spocte vektor ze dvou bodu
14 Vec3 Vector(Vec3 a, Vec3 b);// Výpočet vektoru mezi dvěma body
15 
16 //vypocita vektorovy soucin dvou vektoru
17 Vec3 Cross(Vec3 a, Vec3 b);// Vektorový součin
18 
19 //spocita vse v jedne funkci za pomoci predchozich
20 Vec3 CalculateVector(Vec3 a, Vec3 b, Vec3 c);
21 
22 //get Angle of triangle
23 float getAngle(osg::Vec3 A, osg::Vec3 B, osg::Vec3 C);
24 
25 #endif //NORMAL_H
26