printMatrix()

Transform

Description

Prints the current matrix to the console.

Syntax

void printMatrix()

Parameters

None

Returns

void

Related

Under the Hood

From Processing.h:

void printMatrix();

Under the Hood

From Processing.cpp:

void PApplet::printMatrix(){float m[16];glGetFloatv(GL_MODELVIEW_MATRIX,m);for(int i=0;i<4;i++){for(int j=0;j<4;j++)std::cout<<m[j*4+i]<<" ";std::cout<<"\n";}}