Functions
core/vgui/internals/vgui_back_project.h File Reference

Given a 3x4 camera, project a point x back onto a plane pi. More...

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_d4d4_d4 (double const x[3], double const pi[4], double X[4])
 Easy version - gets the projection matrices for you.
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).

Detailed Description

Given a 3x4 camera, project a point x back onto a plane pi.

Author:
fsm@robots.ox.ac.uk

Definition in file vgui_back_project.h.


Function Documentation

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_d4d4_d4 ( double const  x[3],
double const  pi[4],
double  X[4] 
)

Easy version - gets the projection matrices for you.

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.