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 724B

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