00001 00002 /* COPYRIGHT 00003 * 00004 * This file is part of the Visual Effects Engine - VEE 00005 * 00006 * Read the "VEE-LICENSE" file for the license. 00007 * 00008 * Authors & Copyright: 00009 * 00010 * Tommi Ilmonen, Tuukka Heikura, Marko Myllymaa and 00011 * Janne Kontkanen 2001-2004 00012 * 00013 * Additional copyrights: Tekes 2003-2004 00014 * 00015 * firstname.lastname@hut.fi 00016 * 00017 */ 00018 00019 00020 #ifndef VEE_VECTOR3_H 00021 #define VEE_VECTOR3_H 00022 00023 #include <Fluid/Vector3.hpp> 00024 00025 typedef Fluid::Vector3T<float> VEE_Vector3; 00026 typedef Fluid::Vector3T<double> VEE_Vector3d; 00027 00028 extern const VEE_Vector3 VEE_Vector3ZERO; 00029 extern const VEE_Vector3 VEE_Vector3ONE; 00030 extern const VEE_Vector3 VEE_Vector3_UNIT_X; 00031 extern const VEE_Vector3 VEE_Vector3_UNIT_Y; 00032 extern const VEE_Vector3 VEE_Vector3_UNIT_Z; 00033 00034 00035 /* inline float dot(const VEE_Vector3& a, const VEE_Vector3& b) 00036 { 00037 return a[0]*b[0] + a[1]*b[1] + a[2]*b[2]; 00038 } 00039 00040 00041 inline VEE_Vector3 cross(const VEE_Vector3& a, const VEE_Vector3& b) 00042 { 00043 VEE_Vector3 v((a[1]*b[2])-(a[2]*b[1]), 00044 -(a[0]*b[2])+(a[2]*b[0]), 00045 (a[0]*b[1])-(a[1]*b[0])); 00046 return v; 00047 }*/ 00048 00049 #endif