VOOZH about

URL: https://processing.org/reference/screenz_

⇱ screenZ() / Reference / Processing.org


Reference+
DocumentationReferenceLights CameraCoordinates

Name

screenZ()

Description

Takes a three-dimensional X, Y, Z position and returns the Z value for where it will appear on a (two-dimensional) screen.

Syntax

  • screenZ(x, y, z)

Parameters

  • x(float)3D x-coordinate to be mapped
  • y(float)3D y-coordinate to be mapped
  • z(float)3D z-coordinate to be mapped

Return

  • float