public:
virtual
Point<3>
- pull_back(const Point<3> &space_point) const;
+ pull_back(const Point<3> &space_point) const override;
virtual
Point<3>
- push_forward(const Point<3> &chart_point) const;
+ push_forward(const Point<3> &chart_point) const override;
+
+ virtual std::unique_ptr<Manifold<3,3> > clone() const override;
private:
static const double R;
}
+ // This function is required by the interface of the Manifold base
+ // class, and allows you to clone the AfricaGeometry class:
+ std::unique_ptr<Manifold<3,3> >
+ AfricaGeometry::clone() const
+ {
+ return std::unique_ptr<Manifold<3,3> >(new AfricaGeometry());
+ }
+
+
// The following two functions then define the forward and inverse
// transformations that correspond to the WGS 84 reference shape of
// Earth. The forward transform follows the formula shown in the