]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GObjectModel.cxx
Necessary changes to manage the basic action . First prototype totally completed...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GObjectModel.cxx
index d2212d4a860497a721de25b445d3426a54c6e297..15d0d397a662bcbef673534f217f3995c184cb35 100644 (file)
@@ -75,6 +75,14 @@ namespace bbtk
        }
        //=========================================================================
 
+       void GObjectModel::getCenter(double& x, double& y, double& z)
+       {
+               x = (_xInic+_xFin)/2;
+               y = (_yInic+_yFin)/2;
+               z = (_zInic+_zFin)/2;
+       }
+       //=========================================================================
+
        void GObjectModel::setInicPoint(double& x, double& y, double& z)
        {
                _xInic = x;