You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

vector3d.h 848B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef VECTOR3D_H
  2. #define VECTOR3D_H
  3. #include "vectorxd.h"
  4. typedef VectorXD<3> Vector3D;
  5. template<> class VectorXD<3>: public GenericVector<3, VectorXD<3> >
  6. {
  7. public:
  8. VectorXD<3>();
  9. VectorXD<3>(const double scalars[3]);
  10. VectorXD<3>(double x, double y, double z);
  11. VectorXD<3>(const Vector3D& other);
  12. virtual ~VectorXD<3>();
  13. double getX() const;
  14. Vector3D& setX(double x);
  15. double getY() const;
  16. Vector3D& setY(double y);
  17. double getZ() const;
  18. Vector3D& setZ(double z);
  19. using GenericVector<3, VectorXD<3> >::add;
  20. Vector3D& add(double x, double y, double z);
  21. using GenericVector<3, VectorXD<3> >::sub;
  22. Vector3D& sub(double x, double y, double z);
  23. using GenericVector<3, VectorXD<3> >::dotProduct;
  24. double dotProduct(double x, double y, double z) const;
  25. };
  26. #endif // VECTOR3D_H