From f38527cd937fdce0ca846c9c447b603b5aeea5f7 Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Mon, 12 May 2014 19:41:38 -0400 Subject: [PATCH] [Positioner] Add Result::set_position() --- owlps-positioner/result.hh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/owlps-positioner/result.hh b/owlps-positioner/result.hh index 3765b8f..626a64f 100644 --- a/owlps-positioner/result.hh +++ b/owlps-positioner/result.hh @@ -58,6 +58,8 @@ public: /** @name Write accessors */ //@{ + /// Sets the position + void set_position(const Point3D &_position) ; /// Computes the distance between #position and `real_position` void compute_error(const Point3D &real_position) ; //@} @@ -109,6 +111,16 @@ inline float Result::get_error() const +/* *** Write accessors *** */ + + +inline void Result::set_position(const Point3D &_position) +{ + position = _position ; +} + + + /* *** Operators *** */