libigl v2.5.0
Loading...
Searching...
No Matches
solid_angle.h
Go to the documentation of this file.
1#ifndef IGL_SOLID_ANGLE_H
2#define IGL_SOLID_ANGLE_H
3#include "igl_inline.h"
4#include <Eigen/Dense>
5namespace igl
6{
14 template <
15 typename DerivedA,
16 typename DerivedB,
17 typename DerivedC,
18 typename DerivedP>
19 IGL_INLINE typename DerivedA::Scalar solid_angle(
20 const Eigen::MatrixBase<DerivedA> & A,
21 const Eigen::MatrixBase<DerivedB> & B,
22 const Eigen::MatrixBase<DerivedC> & C,
23 const Eigen::MatrixBase<DerivedP> & P);
24}
25#ifndef IGL_STATIC_LIBRARY
26# include "solid_angle.cpp"
27#endif
28#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
DerivedA::Scalar solid_angle(const Eigen::MatrixBase< DerivedA > &A, const Eigen::MatrixBase< DerivedB > &B, const Eigen::MatrixBase< DerivedC > &C, const Eigen::MatrixBase< DerivedP > &P)
Compute the signed solid angle subtended by the oriented 3d triangle (A,B,C) at some point P.