cameraGetY

Returns the pixel Y coordinate in the viewport of a given 3d space point.

Signatures

  • Paramate.Viewport.cameraGetY( x, y, z )

Details

The configurator model's 3d space can be surjectively mapped onto the 2d space of the browser viewport, i.e. for every 3d space point there is a projection pixel on the viewport. The method returns the Y coordinate of the projection pixel.

Parameters

x

Value of the X coordinate of the 3-dimensional space point.

y

Value of the Y coordinate of the 3-dimensional space point.

z

Value of the Z coordinate of the 3-dimensional space point.

Return value

Y coordinate of the pixel the space coordinate (x,y,z) is mapped to. The value is measured with respect to the viewport's origin.

See also