Skip to content
Snippets Groups Projects
Commit 556b6fca authored by Karsten Rink's avatar Karsten Rink
Browse files

renamed vis method

parent 89351be2
No related branches found
No related tags found
No related merge requests found
......@@ -140,7 +140,7 @@ double BoundingSphere::sqrPointDist(const GeoLib::Point pnt) const
return MathLib::sqrDist(_center.getCoords(), pnt.getCoords())-(_radius*_radius);
}
std::vector<GeoLib::Point*>* BoundingSphere::getSpherePoints(std::size_t n_points) const
std::vector<GeoLib::Point*>* BoundingSphere::getRandomSpherePoints(std::size_t n_points) const
{
std::vector<GeoLib::Point*> *pnts = new std::vector<GeoLib::Point*>;
pnts->reserve(n_points);
......
......@@ -54,7 +54,8 @@ public:
/// Returns the squared distance of a point from the sphere (for points within the sphere distance is negative)
double sqrPointDist(const GeoLib::Point pnt) const;
std::vector<GeoLib::Point*>* getSpherePoints(std::size_t n_points) const;
/// Creates n_points random points located on the surface of the sphere (useful for visualisation)
std::vector<GeoLib::Point*>* getRandomSpherePoints(std::size_t n_points) const;
private:
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment