00001 /* 00002 * Copyright (c) 2009-2010 Jose-Luis Lisani <joseluis.lisani@uib.es> 00003 * All rights reserved. 00004 * 00005 * This program is free software: you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation, either version 3 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00017 */ 00018 00019 #ifndef MISC_IPOL_H 00020 #define MISC_IPOL_H 00021 00022 void normalize_vector(float u[3]); 00023 00024 float scalar_product(float u[3], float v[3]); 00025 00026 void vectorial_product(float u[3], float v[3], float w[3]); 00027 00028 float vector_norm(float u[3]); 00029 00030 float **sample_arclength(float A[3], float B[3], float O[3], int npoints); 00031 00032 void delete_list3D(float **points, int npoints); 00033 00034 #endif