modelZ()
Lights Camera / CoordinatesDescription
Returns the z-coordinate of a 3D point in model space after applying the current transformation matrix.
Syntax
float modelZ(float x, float y, float z)
Parameters
| Name | Type | Description |
|---|---|---|
| x | float | 3D x-coordinate |
| y | float | 3D y-coordinate |
| z | float | 3D z-coordinate |
Returns
floatRelated
Under the Hood
From Processing.h:
float modelZ(float x, float y, float z=0);
Under the Hood
From Processing.cpp:
float PApplet::modelZ(float x,float y,float z) {float mv[16];glGetFloatv(GL_MODELVIEW_MATRIX,mv);return mv[2]*x+mv[6]*y+mv[10]*z+mv[14];}