~ubuntu-branches/ubuntu/trusty/openscenegraph/trusty

« back to all changes in this revision

Viewing changes to OpenSceneGraph/include/osg/Vec4d

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2008-07-29 04:34:38 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 lenny)
  • Revision ID: james.westby@ubuntu.com-20080729043438-no1h9h0dpsrlzp1y
* Non-maintainer upload.
* No longer try to detect (using /proc/cpuinfo when available) how many
  CPUs are available, fixing the FTBFS (due to -j0) on various platforms
  (Closes: #477353). The right way to do it is to support parallel=n in
  DEB_BUILD_OPTIONS (see Debian Policy §4.9.1), and adequate support has
  been implemented.
* Add patch to fix FTBFS due to the build system now refusing to handle
  whitespaces (Policy CMP0004 say the logs), thanks to Andreas Putzo who
  provided it (Closes: #482239):
   - debian/patches/fix-cmp0004-build-failure.dpatch
* Remove myself from Uploaders, as requested a while ago, done by Luk in
  his 2.2.0-2.1 NMU, which was never acknowledged.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        /** Number of vector components. */
36
36
        enum { num_components = 4 };
37
37
        
38
 
        /** Vec member varaible. */
39
38
        value_type _v[4];
40
39
 
41
40
        Vec4d() { _v[0]=0.0; _v[1]=0.0; _v[2]=0.0; _v[3]=0.0; }
249
248
    return lhs[0]*rhs[0]+lhs[1]*rhs[1]+lhs[2]*rhs[2]+rhs[3];
250
249
}
251
250
 
 
251
/** Compute the dot product of a (Vec3,1.0) and a Vec4d. */
 
252
inline Vec4d::value_type operator * (const Vec3f& lhs,const Vec4d& rhs)
 
253
{
 
254
    return lhs[0]*rhs[0]+lhs[1]*rhs[1]+lhs[2]*rhs[2]+rhs[3];
 
255
}
 
256
 
 
257
/** Compute the dot product of a (Vec3,1.0) and a Vec4d. */
 
258
inline Vec4d::value_type operator * (const Vec3d& lhs,const Vec4f& rhs)
 
259
{
 
260
    return lhs[0]*rhs[0]+lhs[1]*rhs[1]+lhs[2]*rhs[2]+rhs[3];
 
261
}
 
262
 
 
263
 
252
264
/** Compute the dot product of a Vec4d and a (Vec3,1.0). */
253
265
inline Vec4d::value_type operator * (const Vec4d& lhs,const Vec3d& rhs)
254
266
{
255
267
    return lhs[0]*rhs[0]+lhs[1]*rhs[1]+lhs[2]*rhs[2]+lhs[3];
256
268
}
257
269
 
 
270
/** Compute the dot product of a Vec4d and a (Vec3,1.0). */
 
271
inline Vec4d::value_type operator * (const Vec4d& lhs,const Vec3f& rhs)
 
272
{
 
273
    return lhs[0]*rhs[0]+lhs[1]*rhs[1]+lhs[2]*rhs[2]+lhs[3];
 
274
}
 
275
 
 
276
/** Compute the dot product of a Vec4d and a (Vec3,1.0). */
 
277
inline Vec4d::value_type operator * (const Vec4f& lhs,const Vec3d& rhs)
 
278
{
 
279
    return lhs[0]*rhs[0]+lhs[1]*rhs[1]+lhs[2]*rhs[2]+lhs[3];
 
280
}
 
281
 
258
282
}    // end of namespace osg
259
283
 
260
284
#endif