Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template<template<typename> class Vector, typename Type>
- class Shape
- {
- private:
- inline bool check_size(const std::vector<Vector<Type>> &v1, const std::vector<Vector<Type>> &v2) const;
- protected:
- std::vector<Vector<Type>> verticies = {};
- Vector<Type> axis = Vector<Type>(1,1);
- Shape(const std::vector<Vector<Type>> &);
- Shape(const std::vector<Vector<Type>> &, const Vector<Type> &);
- public:
- Shape() {}
- ~Shape() {}
- inline virtual void setVertex(const size_t &, const Vector<Type> &);
- inline virtual Vector<Type> & getVertex(const size_t &) const;
- inline virtual void addVertex(const size_t &, const Vector<Type> &);
- inline virtual void delVertex(const size_t &);
- void setAxis(const Vector<Type> &);
- Vector<Type> & getAxis() const;
- size_t & getVertexCount() const;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement