libigl v2.5.0
Loading...
Searching...
No Matches
unproject_on_line.h
Go to the documentation of this file.
1#ifndef IGL_UNPROJECT_ON_LINE_H
2#define IGL_UNPROJECT_ON_LINE_H
3
4#include <Eigen/Dense>
5
6namespace igl
7{
20 template <
21 typename DerivedUV,
22 typename DerivedM,
23 typename DerivedVP,
24 typename Derivedorigin,
25 typename Deriveddir>
27 const Eigen::MatrixBase<DerivedUV> & UV,
28 const Eigen::MatrixBase<DerivedM> & M,
29 const Eigen::MatrixBase<DerivedVP> & VP,
30 const Eigen::MatrixBase<Derivedorigin> & origin,
31 const Eigen::MatrixBase<Deriveddir> & dir,
32 typename DerivedUV::Scalar & t);
35 template <
36 typename DerivedUV,
37 typename DerivedM,
38 typename DerivedVP,
39 typename Derivedorigin,
40 typename Deriveddir,
41 typename DerivedZ>
43 const Eigen::MatrixBase<DerivedUV> & UV,
44 const Eigen::MatrixBase<DerivedM> & M,
45 const Eigen::MatrixBase<DerivedVP> & VP,
46 const Eigen::MatrixBase<Derivedorigin> & origin,
47 const Eigen::MatrixBase<Deriveddir> & dir,
48 Eigen::PlainObjectBase<DerivedZ> & Z);
49}
50
51#ifndef IGL_STATIC_LIBRARY
52# include "unproject_on_line.cpp"
53#endif
54
55#endif
Definition AABB.h:17
void unproject_on_line(const Eigen::MatrixBase< DerivedUV > &UV, const Eigen::MatrixBase< DerivedM > &M, const Eigen::MatrixBase< DerivedVP > &VP, const Eigen::MatrixBase< Derivedorigin > &origin, const Eigen::MatrixBase< Deriveddir > &dir, typename DerivedUV::Scalar &t)
Given a screen space point (u,v) and the current projection matrix (e.g.