21.06.2014 Views

GLSL 3.30 - OpenGL

GLSL 3.30 - OpenGL

GLSL 3.30 - OpenGL

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

8 Built-in Functions<br />

Syntax<br />

genType sinh (genType x)<br />

genType cosh (genType x)<br />

genType tanh (genType x)<br />

genType asinh (genType x)<br />

genType acosh (genType x)<br />

genType atanh (genType x)<br />

Description<br />

Returns the hyperbolic sine function<br />

e x −e −x<br />

2<br />

Returns the hyperbolic cosine function<br />

e x e −x<br />

2<br />

Returns the hyperbolic tangent function<br />

sinh x<br />

cosh x<br />

Arc hyperbolic sine; returns the inverse of sinh.<br />

Arc hyperbolic cosine; returns the non-negative inverse<br />

of cosh. Results are undefined if x < 1.<br />

Arc hyperbolic tangent; returns the inverse of tanh.<br />

Results are undefined if ∣x∣≥1.<br />

8.2 Exponential Functions<br />

These all operate component-wise. The description is per component.<br />

Syntax<br />

Description<br />

genType pow (genType x, genType y) Returns x raised to the y power, i.e., x y<br />

Results are undefined if x < 0.<br />

Results are undefined if x = 0 and y

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!