~ubuntu-branches/ubuntu/lucid/meshlab/lucid

« back to all changes in this revision

Viewing changes to meshlab/src/meshlabplugins/filter_meshing/algebra5.h

  • Committer: Bazaar Package Importer
  • Author(s): Teemu Ikonen
  • Date: 2009-10-08 16:40:41 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20091008164041-0c2ealqv8b8uc20c
Tags: 1.2.2-1
* New upstream version
* Do not build filter_isoparametrization because liblevmar dependency
  is not (yet) in Debian
* Fix compilation with gcc-4.4, thanks to Jonathan Liu for the patch
  (closes: #539544)
* rules: Add compiler variables to the qmake call (for testing with new
  GCC versions)
* io_3ds.pro: Make LIBS and INCLUDEPATH point to Debian version of lib3ds
* io_epoch.pro: Make LIBS point to Debian version of libbz2
* control:
  - Move Homepage URL to the source package section
  - Update to standards-version 3.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
                typedef double ScalarType;
40
40
 
41
41
                // r = a-b
42
 
                void inline sub_vec5(ScalarType a[5], ScalarType b[5], ScalarType r[5])
 
42
                void inline sub_vec5(const ScalarType a[5], const ScalarType b[5], ScalarType r[5])
43
43
                {
44
44
                        r[0] = a[0] - b[0];
45
45
                        r[1] = a[1] - b[1];
49
49
                }
50
50
 
51
51
                // returns the in-product a*b
52
 
                ScalarType inline inproduct5(ScalarType a[5], ScalarType b[5])
 
52
                ScalarType inline inproduct5(const ScalarType a[5], const ScalarType b[5])
53
53
                {
54
54
                        return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]+a[3]*b[3]+a[4]*b[4];
55
55
                }
56
56
 
57
57
                // r = out-product of a*b
58
 
                void inline outproduct5(ScalarType a[5], ScalarType b[5], ScalarType r[5][5])
 
58
                void inline outproduct5(const ScalarType a[5], const ScalarType b[5], ScalarType r[5][5])
59
59
                {
60
60
                        for(int i = 0; i < 5; i++)
61
61
                                for(int j = 0; j < 5; j++)