7 int main(
int,
char**) {
14 std::cout <<
"Center = " << ray1->target - ray1->origin << std::endl;
17 std::cout <<
"Left = " << ray2->target - ray2->origin << std::endl;
20 std::cout <<
"Top = " << ray3->target - ray3->origin << std::endl;
Defines projection transforming 3D particles onto 2D screen.
BasicVector< Float > Vector
virtual Optional< CameraRay > unproject(const Coords &coords) const override
Returns a ray in particle coordinates corresponding to given coordinates in the image plane.
Wrapper of type value of which may or may not be present.
Pixel imageSize
Size of the image.
Vector position
Camera position in space.
Vector target
Look-at point in space.