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

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