74 #ifndef SLIP_DPOINT3D_HPP
75 #define SLIP_DPOINT3D_HPP
82 #include <boost/serialization/access.hpp>
83 #include <boost/serialization/split_member.hpp>
84 #include <boost/serialization/version.hpp>
99 template <
typename CoordType>
100 class DPoint3d:
public DPoint<CoordType,3>
130 const CoordType&
dx2,
131 const CoordType&
dx3);
143 void dx1(
const CoordType& dx);
153 const CoordType&
dx1()
const;
158 void dx2(
const CoordType& dx);
168 const CoordType&
dx2()
const;
173 void dx3(
const CoordType& dx);
183 const CoordType&
dx3()
const;
193 const CoordType&
dx2,
194 const CoordType&
dx3);
201 std::string
name()
const;
204 template<
class Archive>
205 void save(Archive & ar,
const unsigned int version)
const
207 ar & boost::serialization::base_object<slip::DPoint<CoordType,3> >(*this);
209 template<
class Archive>
210 void load(Archive & ar,
const unsigned int version)
212 ar & boost::serialization::base_object<slip::DPoint<CoordType,3> >(*this);
214 BOOST_SERIALIZATION_SPLIT_MEMBER()
220 template<
typename CoordType>
224 this->coord_[0] = CoordType(0);
225 this->coord_[1] = CoordType(0);
226 this->coord_[2] = CoordType(0);
229 template<
typename CoordType>
232 DPoint<CoordType,3>(array)
236 template<
typename CoordType>
239 const CoordType& dx2,
240 const CoordType& dx3)
242 this->coord_[0] = CoordType(dx1);
243 this->coord_[1] = CoordType(dx2);
244 this->coord_[2] = CoordType(dx3);
247 template<
typename CoordType>
251 template<
typename CoordType>
255 template<
typename CoordType>
259 template<
typename CoordType>
263 template<
typename CoordType>
267 template<
typename CoordType>
271 template<
typename CoordType>
275 template<
typename CoordType>
279 template<
typename CoordType>
284 template<
typename CoordType>
287 const CoordType& dx2,
288 const CoordType& dx3)
290 this->coord_[0] = dx1;
291 this->coord_[1] = dx2;
292 this->coord_[2] = dx3;
296 template<
typename CoordType>
303 #endif //SLIP_DPOINT3D_HPP
void set_coord(const CoordType &dx1, const CoordType &dx2, const CoordType &dx3)
Accessor/Mutator of the coordinates of DPoint3d.
Difference of Point3D class, specialization of DPoint<CoordType,DIM> with DIM = 3.
CoordType & dx1()
Accessor/Mutator of the first coordinate of DPoint3d.
DPoint< CoordType, 3 > base
std::string name() const
Returns the name of the class.
friend class boost::serialization::access
DPoint3d()
Constructs a DPoint3d.
CoordType & dx3()
Accessor/Mutator of the second coordinate of DPoint3d.
CoordType & dx2()
Accessor/Mutator of the second coordinate of DPoint3d.
Provides an abstract class to modelize the difference of slip::Point.