libigl v2.5.0
Loading...
Searching...
No Matches
unproject_ray.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2015 Alec Jacobson <alecjacobson@gmail.com>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/.
8#ifndef IGL_UNPROJECT_RAY_H
9#define IGL_UNPROJECT_RAY_H
10#include "igl_inline.h"
11#include <Eigen/Core>
12namespace igl
13{
24 template <
25 typename Derivedpos,
26 typename Derivedmodel,
27 typename Derivedproj,
28 typename Derivedviewport,
29 typename Deriveds,
30 typename Deriveddir>
32 const Eigen::MatrixBase<Derivedpos> & pos,
33 const Eigen::MatrixBase<Derivedmodel> & model,
34 const Eigen::MatrixBase<Derivedproj> & proj,
35 const Eigen::MatrixBase<Derivedviewport> & viewport,
36 Eigen::PlainObjectBase<Deriveds> & s,
37 Eigen::PlainObjectBase<Deriveddir> & dir);
38}
39#ifndef IGL_STATIC_LIBRARY
40# include "unproject_ray.cpp"
41#endif
42#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void unproject_ray(const Eigen::MatrixBase< Derivedpos > &pos, const Eigen::MatrixBase< Derivedmodel > &model, const Eigen::MatrixBase< Derivedproj > &proj, const Eigen::MatrixBase< Derivedviewport > &viewport, Eigen::PlainObjectBase< Deriveds > &s, Eigen::PlainObjectBase< Deriveddir > &dir)
Construct a ray (source point + direction vector) given a screen space positions (e....