12#ifndef RAY_H_6014714286
13#define RAY_H_6014714286
15#include <Carna/Carna.h>
46template<
typename VectorType >
Represents an association.
Represents the point-of-view and defines the 3D to 2D projection.
Defines a rendering viewport. The viewport is a property of the current OpenGL context.
void fromEye(unsigned int frameX, unsigned int frameY, const Viewport &vp, const Camera &cam)
Computes a ray in world space.
void fromEye(unsigned int frameX, unsigned int frameY, const Viewport &vp, const Matrix4f &inverseProjection, const Matrix4f &inverseView)
Computes a ray in world space.
Defines ray in where is the Scalar type derived from VectorType and is dimension of VectorType.
VectorType origin
Holds the origin of this ray.
VectorType Vector
Reflects the VectorType argument this class template was instantiated with.
VectorType direction
Holds the direction of this ray.
Defines Carna::base::math namespace and CARNA_FOR_VECTOR3UI.
Eigen::Matrix< float, 4, 4, Eigen::ColMajor > Matrix4f
Defines matrix.