MCPcopy Create free account
hub / github.com/OpenThree/three-cesium-examples / calculateFocusDistance

Method calculateFocusDistance

js/postprocessing.js:5071–5075  ·  view source on GitHub ↗

* Calculates the focus distance from the camera to the given position. * * @param {Vector3} target - The target. * @return {Number} The normalized focus distance.

(target)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

updateMethod · 0.80

Calls 2

viewZToOrthographicDepthFunction · 0.85
distanceToMethod · 0.80

Tested by

no test coverage detected