Added object position managing functions and structures.
[familia.git] / src / math / positions.h
diff --git a/src/math/positions.h b/src/math/positions.h
new file mode 100644 (file)
index 0000000..6db7f3d
--- /dev/null
@@ -0,0 +1,42 @@
+/****************************************************************************
+ *  Familia Lignum - Genealogical program                                   *
+ *  Copyright (C) 2011-2012 Rafał Długołęcki <rafal@dlugolecki.net.pl>      *
+ *                                                                          *
+ *  This program is free software; you can redistribute it and/or modify    *
+ *  it under the terms of the GNU General Public License as published by    *
+ *  the Free Software Foundation; version 2 of the License.                 *
+ *                                                                          *
+ *  This program is distributed in the hope that it will be useful,         *
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of          *
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           *
+ *  GNU General Public License for more details.                            *
+ *                                                                          *
+ *  You should have received a copy of the GNU General Public License along *
+ *  with this program; if not, write to the Free Software Foundation, Inc., *
+ *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.             *
+ *                                                                          *
+ ****************************************************************************/
+
+#ifndef _FAMILIA_MATH_POSITIONS_H
+#define _FAMILIA_MATH_POSITIONS_H
+
+#include "3d.h"
+
+#include "storage/individual.h"
+#include "storage/family.h"
+
+/**
+ * Calculates local position of given individual
+ * @parameter individual to calculate position
+ * @return calculated local position of the individual
+ */
+struct position * familia_position_calculate_individual_position(struct familia_individual * individual);
+
+/**
+ * Calculates local position of given family
+ * @parameter family to calculate position
+ * @return calculated local position of the family
+ */
+struct position * familia_position_calculate_family_position(struct familia_family * family);
+
+#endif /* _FAMILIA_MATH_3D_H */