factor.h
Go to the documentation of this file.
00001 /*
00002 Copyright (c) 2006, Michael Kazhdan and Matthew Bolitho
00003 All rights reserved.
00004 
00005 Redistribution and use in source and binary forms, with or without modification,
00006 are permitted provided that the following conditions are met:
00007 
00008 Redistributions of source code must retain the above copyright notice, this list of
00009 conditions and the following disclaimer. Redistributions in binary form must reproduce
00010 the above copyright notice, this list of conditions and the following disclaimer
00011 in the documentation and/or other materials provided with the distribution. 
00012 
00013 Neither the name of the Johns Hopkins University nor the names of its contributors
00014 may be used to endorse or promote products derived from this software without specific
00015 prior written permission. 
00016 
00017 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
00018 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES 
00019 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
00020 SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
00021 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
00022 TO, PROCUREMENT OF SUBSTITUTE  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
00023 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
00024 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
00025 ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
00026 DAMAGE.
00027 */
00028 
00029 #ifndef FACTOR_INCLUDED
00030 #define FACTOR_INCLUDED
00031 
00032 #include <pcl/pcl_exports.h>
00033 
00034 #define PI 3.1415926535897932384
00035 #define SQRT_3 1.7320508075688772935
00036 
00037 namespace pcl
00038 {
00039   namespace poisson
00040   {
00041     PCL_EXPORTS double ArcTan2(double y,double x);
00042     PCL_EXPORTS double Angle(const double in[2]);
00043     PCL_EXPORTS void Sqrt(const double in[2],double out[2]);
00044     PCL_EXPORTS void Add(const double in1[2],const double in2[2],double out[2]);
00045     PCL_EXPORTS void Subtract(const double in1[2],const double in2[2],double out[2]);
00046     PCL_EXPORTS void Multiply(const double in1[2],const double in2[2],double out[2]);
00047     PCL_EXPORTS void Divide(const double in1[2],const double in2[2],double out[2]);
00048 
00049     PCL_EXPORTS int Factor(double a1,double a0,double roots[1][2],double EPS);
00050     PCL_EXPORTS int Factor(double a2,double a1,double a0,double roots[2][2],double EPS);
00051     PCL_EXPORTS int Factor(double a3,double a2,double a1,double a0,double roots[3][2],double EPS);
00052     PCL_EXPORTS int Factor(double a4,double a3,double a2,double a1,double a0,double roots[4][2],double EPS);
00053 
00054     PCL_EXPORTS int Solve(const double* eqns,const double* values,double* solutions, int dim);
00055 
00056   }
00057 }
00058 
00059 
00060 #endif // FACTOR_INCLUDED


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:23:56