Go to the documentation of this file.00001 #ifndef OPENTISSUE_DYNAMICS_PSYS_PSYS_CONTACT_POINT_H
00002 #define OPENTISSUE_DYNAMICS_PSYS_PSYS_CONTACT_POINT_H
00003
00004
00005
00006
00007
00008
00009
00010 #include <OpenTissue/configuration.h>
00011
00012 namespace OpenTissue
00013 {
00014 namespace psys
00015 {
00016
00017 template<typename types>
00018 class ContactPoint
00019 {
00020 public:
00021
00022 typedef typename types::math_types math_types;
00023 typedef typename math_types::real_type real_type;
00024 typedef typename math_types::vector3_type vector3_type;
00025 typedef typename types::particle_type particle_type;
00026
00027 public:
00028
00029 vector3_type m_p;
00030 vector3_type m_n;
00031 real_type m_distance;
00032
00033 particle_type * m_A0;
00034 particle_type * m_A1;
00035 particle_type * m_A2;
00036
00037 particle_type * m_B0;
00038 particle_type * m_B1;
00039 particle_type * m_B2;
00040
00041 real_type m_a0;
00042 real_type m_a1;
00043 real_type m_a2;
00044
00045 real_type m_b0;
00046 real_type m_b1;
00047 real_type m_b2;
00048
00049 public:
00050
00051 ContactPoint()
00052 : m_p(0,0,0)
00053 , m_n(0,0,0)
00054 , m_distance()
00055 , m_A0(0)
00056 , m_A1(0)
00057 , m_A2(0)
00058 , m_B0(0)
00059 , m_B1(0)
00060 , m_B2(0)
00061 , m_a0()
00062 , m_a1()
00063 , m_a2()
00064 , m_b0()
00065 , m_b1()
00066 , m_b2()
00067 { }
00068
00069 };
00070
00071 }
00072 }
00073
00074
00075 #endif