~esys-p-dev/esys-particle/trunk

« back to all changes in this revision

Viewing changes to Foundation/vec3.h

  • Committer: slatham
  • Date: 2004-12-06 07:13:44 UTC
  • Revision ID: svn-v4:1ddc92f8-1f06-0410-a909-b11019f1b28a:lsmtrunk:548
Added Vec3(double s) explicit constructor.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
  static const Vec3 ZERO; //! The zero vector.
41
41
  // constructors
42
42
  VEC3_INLINE Vec3();
 
43
  VEC3_INLINE explicit Vec3(double s);
43
44
  VEC3_INLINE Vec3(double,double,double);
44
45
  VEC3_INLINE Vec3(const Vec3&);
45
46
 
46
47
  // vec-vec operators
47
48
  VEC3_INLINE Vec3& operator=(const Vec3&);
 
49
  VEC3_INLINE Vec3& operator=(double s);
48
50
  VEC3_INLINE Vec3& operator-=(const Vec3&);
49
51
  VEC3_INLINE Vec3& operator+=(const Vec3&);
50
52
  VEC3_INLINE Vec3 operator+(const Vec3&) const;