X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=src%2Fmath%2Fpositions.h;fp=src%2Fmath%2Fpositions.h;h=6db7f3d40d2f9d2c63f94c66f57b5a2dd07d629b;hb=46c09ea2689913bb459c5f04439647aa138dc196;hp=0000000000000000000000000000000000000000;hpb=9c12f0411c31e96fd1c5bd11fb2b6362dc65fdab;p=familia.git diff --git a/src/math/positions.h b/src/math/positions.h new file mode 100644 index 0000000..6db7f3d --- /dev/null +++ b/src/math/positions.h @@ -0,0 +1,42 @@ +/**************************************************************************** + * Familia Lignum - Genealogical program * + * Copyright (C) 2011-2012 Rafał Długołęcki * + * * + * 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 */