GLUUNPROJECT(3G)GLUUNPROJECT(3G)NAME
gluUnProject - map window coordinates to object coordinates
C SPECIFICATION
GLint gluUnProject( GLdouble winX,
GLdouble winY,
GLdouble winZ,
const GLdouble *model,
const GLdouble *proj,
const GLint *view,
GLdouble* objX,
GLdouble* objY,
GLdouble* objZ )
PARAMETERS
winX, winY, winZ
Specify the window coordinates to be mapped.
model Specifies the modelview matrix (as from a glGetDoublev call).
proj Specifies the projection matrix (as from a glGetDoublev call).
view Specifies the viewport (as from a glGetIntegerv call).
objX, objY, objZ
Returns the computed object coordinates.
DESCRIPTION
gluUnProject maps the specified window coordinates into object coordinates using model, proj, and view. The result is stored in objX,
objY, and objZ. A return value of GL_TRUE indicates success; a return value of GL_FALSE indicates failure.
To compute the coordinates (objX, objY, and objZ), gluUnProject multiplies the normalized device coordinates by the inverse of model*proj
as follows:
objX
(objY)=INV(PM)(_______________-1)
objZ _______________-1
W 2(winZ)-1
1
INV() denotes matrix inversion. W is an unused variable, included for consistent matrix notation.
SEE ALSO glGet(3G), gluProject(3G)GLUUNPROJECT(3G)
Check Out this Related Man Page
GLUUNPROJECT(3G)GLUUNPROJECT(3G)NAME
gluUnProject - map window coordinates to object coordinates
C SPECIFICATION
GLint gluUnProject( GLdouble winX,
GLdouble winY,
GLdouble winZ,
const GLdouble *model,
const GLdouble *proj,
const GLint *view,
GLdouble* objX,
GLdouble* objY,
GLdouble* objZ )
PARAMETERS
winX, winY, winZ
Specify the window coordinates to be mapped.
model Specifies the modelview matrix (as from a glGetDoublev call).
proj Specifies the projection matrix (as from a glGetDoublev call).
view Specifies the viewport (as from a glGetIntegerv call).
objX, objY, objZ
Returns the computed object coordinates.
DESCRIPTION
gluUnProject maps the specified window coordinates into object coordinates using model, proj, and view. The result is stored in objX,
objY, and objZ. A return value of GL_TRUE indicates success; a return value of GL_FALSE indicates failure.
To compute the coordinates (objX, objY, and objZ), gluUnProject multiplies the normalized device coordinates by the inverse of model*proj
as follows:
2(winX - view[0])
----------------- - 1
view[2]
objX 2(winY - view[1])
objY = INV(PM) ----------------- - 1
objZ view[3]
W
2(winZ) - 1
1
INV() denotes matrix inversion. W is an unused variable, included for consistent matrix notation.
SEE ALSO
glGet, gluProject
GLUUNPROJECT(3G)
I have a file with 65 sets of 35 coordinates, and would like to isolate these coordinates so that I can easily copy the coordinates to another file. The problem is, I've got a 9 line header before each set of coordinates (so each set is 44 lines long). There are a zillion threads out there about... (3 Replies)
Hello Every One,
I am not sure if this is the correct forum to post this question. But please help me with your ideas.
I have got a work (proj) where i need to customize the RHEL OS . This would involve building packages, installing them , correcting privileges etc and all these... (4 Replies)
Hej all,
I have a LS-DYNA keyword file which I want to extract the node coordinates from it to another file for processing and then returning the result coordinates to the same place, the structure of the file is like:
Keyword file:
5010497 -266.6623535 -446.2596130 ... (3 Replies)
Hi,
I would like to know how can I get the ID of a feature if its genomic coordinates overlap the coordinates of another file. Example:
Get the 4th column (ID) of this file1:
chr1 10 100 gene1
chr2 3000 5000 gene2
chr3 200 1500 gene3
if it overlaps with a feature in this file2:
chr2... (1 Reply)