/[hegemonie]/hegemonie/Headers/Common/Coord.h
ViewVC logotype

Diff of /hegemonie/Headers/Common/Coord.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by c-leo, Mon Jun 30 09:52:25 2003 UTC revision 1.7 by el_doc, Wed Jul 2 16:37:12 2003 UTC
# Line 100  NormalizeVector (coord_t vector) Line 100  NormalizeVector (coord_t vector)
100    return vector;    return vector;
101  }  }
102    
103    static inline double
104    ScalarProduct (coord_t vector1, coord_t vector2)
105    {
106      vector1.x *= vector2.x;
107      vector1.y *= vector2.y;
108      vector1.z *= vector2.z;
109    
110      return vector1.x + vector1.y + vector1.z;
111    }
112    
113  static inline coord_t  static inline coord_t
114  CrossProduct (coord_t vector1, coord_t vector2)  CrossProduct (coord_t vector1, coord_t vector2)
115  {  {

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26