See vgui_back_project.h for a description of this file. More...
#include "vgui_back_project.h"
#include <vgui/vgui_gl.h>
#include "vgui_transpose_4x4.h"
#include "vgui_multiply_4x4.h"
Go to the source code of this file.
Functions | |
bool | vgui_back_project_d3d4d4d4d4_d4 (double const x[3], double const P0[4], double const P1[4], double const P2[4], double const pi[4], double X[4]) |
Given a 3x4 camera, project a point x back onto a plane pi. | |
bool | vgui_back_project_d3d4_d4 (double const x[3], double const pi[4], double X[4]) |
bool | vgui_back_project_iid4_d4 (int vx, int vy, double const pi[4], double X[4]) |
Easy version - backproject from viewport coordinates. | |
bool | vgui_back_project_ii_dd (int vx, int vy, double *x, double *y) |
Easy version - backproject from viewport coordinates to (x,y,0,1). |
See vgui_back_project.h for a description of this file.
Definition in file vgui_back_project.cxx.
bool vgui_back_project_d3d4_d4 | ( | double const | x[3], |
double const | pi[4], | ||
double | X[4] | ||
) |
Definition at line 44 of file vgui_back_project.cxx.
bool vgui_back_project_d3d4d4d4d4_d4 | ( | double const | x[3], |
double const | P0[4], | ||
double const | P1[4], | ||
double const | P2[4], | ||
double const | pi[4], | ||
double | X[4] | ||
) |
Given a 3x4 camera, project a point x back onto a plane pi.
The given point x is in normalize device coordinates. The computed point X is in object coordinates.
Definition at line 27 of file vgui_back_project.cxx.
bool vgui_back_project_ii_dd | ( | int | vx, |
int | vy, | ||
double * | x, | ||
double * | y | ||
) |
Easy version - backproject from viewport coordinates to (x,y,0,1).
Definition at line 62 of file vgui_back_project.cxx.
bool vgui_back_project_iid4_d4 | ( | int | vx, |
int | vy, | ||
double const | pi[4], | ||
double | X[4] | ||
) |
Easy version - backproject from viewport coordinates.
Definition at line 52 of file vgui_back_project.cxx.