Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromerobert committed Jul 7, 2024
1 parent cbd9aff commit b032175
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions src/coordinates.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,35 +33,6 @@

namespace hmat {

/*! \brief Class representing a 3D point.
Used only in examples (cholesky.cpp and kriging.cpp)
*/
class Point {
public:
union {
struct {
double x, y, z; /// Coordinates
};
double xyz[3]; /// Idem
};
Point(double _x = 0., double _y = 0., double _z = 0.) : x(_x), y(_y), z(_z) {}
/*! \brief Return d(this, other)
*/
inline double distanceTo(const Point &other) const {
double result = 0.;
double difference = 0.;
difference = x - other.x;
result += difference * difference;
difference = y - other.y;
result += difference * difference;
difference = z - other.z;
result += difference * difference;
return sqrt(result);
}
};


class DofCoordinates {
public:
/*! \brief Create dof coordinates.
Expand Down

0 comments on commit b032175

Please sign in to comment.