shearX()

Transform

Description

Shears a shape around the x-axis the amount specified by the angle parameter.

Syntax

void shearX(float angle)

Parameters

NameTypeDescription
anglefloatangle in radians

Returns

void

Related

Under the Hood

From Processing.h:

void shearX(float angle);

Under the Hood

From Processing.cpp:

void PApplet::shearX(float a) {float m[]={1,0,0,0,std::tan(a),1,0,0,0,0,1,0,0,0,0,1};glMultMatrixf(m);}