~ubuntu-branches/debian/sid/coin2/sid

« back to all changes in this revision

Viewing changes to include/Inventor/SbVec4d.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2008-06-28 02:38:17 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080628023817-lgrh0u677j1gcqgf
Tags: 2.5.0-2
* debian/control: Change suggests from libopenal0 to libopenal0a.
  Closes: #488001.  Change ${Source-Version} to ${binary:Version}.
  Update to standards version 3.8.0.

* debian/rules: Do not ignore errors in clean rule.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
/**************************************************************************\
5
5
 *
6
6
 *  This file is part of the Coin 3D visualization library.
7
 
 *  Copyright (C) 1998-2006 by Systems in Motion.  All rights reserved.
 
7
 *  Copyright (C) 1998-2007 by Systems in Motion.  All rights reserved.
8
8
 *
9
9
 *  This library is free software; you can redistribute it and/or
10
10
 *  modify it under the terms of the GNU General Public License
28
28
 
29
29
#include <Inventor/SbBasic.h>
30
30
 
 
31
class SbVec4f;
31
32
class SbVec3d;
32
33
 
33
34
class COIN_DLL_API SbVec4d {
35
36
  SbVec4d(void);
36
37
  SbVec4d(const double v[4]);
37
38
  SbVec4d(const double x, const double y, const double z, const double w);
 
39
  explicit SbVec4d(const SbVec4f & v) { setValue(v); }
 
40
 
38
41
  double dot(const SbVec4d& v) const;
39
42
  SbBool equals(const SbVec4d& v, const double tolerance) const;
40
43
  void getReal(SbVec3d& v) const;
41
 
  const double* getValue(void) const;
 
44
  const double * getValue(void) const;
42
45
  void getValue(double& x, double& y, double& z, double& w) const;
43
46
  double length(void) const;
 
47
  double sqrLength(void) const;
44
48
  void negate(void);
45
49
  double normalize(void);
46
50
  SbVec4d& setValue(const double v[4]);
47
51
  SbVec4d& setValue(const double x, const double y, const double z,
48
52
                    const double w);
 
53
  SbVec4d & setValue(const SbVec4f & v);
49
54
  double& operator [](const int i);
50
55
  const double& operator [](const int i) const;
51
56
  SbVec4d& operator *=(const double d);