Skip to content

Commit

Permalink
doc(View): update doc of View.getMeterToPixel method
Browse files Browse the repository at this point in the history
  • Loading branch information
mgermerie authored and gchoqueux committed Jan 22, 2021
1 parent 64d2c4b commit cc2385c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/View.js
Original file line number Diff line number Diff line change
Expand Up @@ -778,14 +778,14 @@ class View extends THREE.EventDispatcher {
}

/**
* Get, for a specific screen coordinate, this size in pixels of a projected
* Get, for a specific screen coordinate, the size in pixels of a projected
* distance on the surface of the main layer of the view.
*
* @param {number} [meters=1] - The size, in meters, to get in pixels.
* @param {THREE.Vector2} [screenCoord] - The screen coordinate to get the
* projected distance at. By default, this is the middle of the screen.
*
* @return {number} The projected distance in meters.
* @return {number} The projected distance in pixels.
*/
getMetersToPixels(meters = 1, screenCoord) {
if (this.camera.camera3D.isOrthographicCamera) {
Expand Down

0 comments on commit cc2385c

Please sign in to comment.