#include <assert.h>
#include <vcg/math/base.h>
Go to the source code of this file.
Classes | |
class | vcg::Point3< P3ScalarType > |
Namespaces | |
namespace | vcg |
* | |
Typedefs | |
typedef Point3< double > | vcg::Point3d |
typedef Point3< float > | vcg::Point3f |
typedef Point3< int > | vcg::Point3i |
typedef Point3< short > | vcg::Point3s |
Functions | |
template<class SCALARTYPE > | |
Point3< SCALARTYPE > | vcg::Abs (const Point3< SCALARTYPE > &p) |
template<class P3ScalarType > | |
P3ScalarType | vcg::Angle (Point3< P3ScalarType > const &p1, Point3< P3ScalarType > const &p2) |
template<class P3ScalarType > | |
P3ScalarType | vcg::AngleN (Point3< P3ScalarType > const &p1, Point3< P3ScalarType > const &p2) |
template<class P3ScalarType > | |
P3ScalarType | vcg::Distance (Point3< P3ScalarType > const &p1, Point3< P3ScalarType > const &p2) |
template<class P3ScalarType > | |
void | vcg::GetUV (Point3< P3ScalarType > &n, Point3< P3ScalarType > &u, Point3< P3ScalarType > &v, Point3< P3ScalarType > up=(Point3< P3ScalarType >(0, 1, 0))) |
template<class SCALARTYPE > | |
Point3< SCALARTYPE > | vcg::LowClampToZero (const Point3< SCALARTYPE > &p) |
template<class P3ScalarType > | |
P3ScalarType | vcg::Norm (Point3< P3ScalarType > const &p) |
template<class P3ScalarType > | |
Point3< P3ScalarType > & | vcg::Normalize (Point3< P3ScalarType > &p) |
template<class P3ScalarType > | |
P3ScalarType | vcg::PSDist (const Point3< P3ScalarType > &p, const Point3< P3ScalarType > &v1, const Point3< P3ScalarType > &v2, Point3< P3ScalarType > &q) |
Point(p) Edge(v1-v2) dist, q is the point in v1-v2 with min dist. | |
template<class P3ScalarType > | |
P3ScalarType | vcg::SquaredDistance (Point3< P3ScalarType > const &p1, Point3< P3ScalarType > const &p2) |
template<class P3ScalarType > | |
P3ScalarType | vcg::SquaredNorm (Point3< P3ScalarType > const &p) |
template<class P3ScalarType > | |
double | vcg::stable_dot (Point3< P3ScalarType > const &p0, Point3< P3ScalarType > const &p1) |