setFocusDistance Method
Set the focus distance for this view.
setFocusDistance(dist: number): void
@note Changing the focus distance changes the plane on which the delta.x and delta.y values lie. So, changing focus distance without making corresponding changes to delta.x and delta.y essentially changes the lens angle, causing a "zoom" effect
Parameter | Type | Description |
---|---|---|
dist | number |
Returns - void
Defined in
Last Updated: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.