modelY()

Lights Camera / Coordinates

Description

Returns the y-coordinate of a 3D point in model space after applying the current transformation matrix.

Syntax

float modelY(float x, float y, float z)

Parameters

NameTypeDescription
xfloat3D x-coordinate
yfloat3D y-coordinate
zfloat3D z-coordinate

Returns

float

Related

Under the Hood

From Processing.h:

float modelY(float x, float y, float z=0);

Under the Hood

From Processing.cpp:

float PApplet::modelY(float x,float y,float z) {float mv[16];glGetFloatv(GL_MODELVIEW_MATRIX,mv);return mv[1]*x+mv[5]*y+mv[9]*z+mv[13];}