tan
The tangent of an angle in radians.
tan(x: Val): Expr
Import math from shaders/std and use math.tan.
Parameters
| Name | Type | Notes |
|---|---|---|
x | Val |
Example
const slope = tan(mul(params.uniforms.tilt, 0.017453292519943295))
The tangent of an angle in radians.
tan(x: Val): Expr
Import math from shaders/std and use math.tan.
| Name | Type | Notes |
|---|---|---|
x | Val |
const slope = tan(mul(params.uniforms.tilt, 0.017453292519943295))