Focal length in pixels (see setVerticalFov)
Object distance in world space.
Object size in screen space.
object size in world space.
Calculates object's screen size based on the focal length and it's camera distance.
Focal length in pixels (see setVerticalFov)
Object distance in world space.
Object size in world space.
object size in screen space.
Returns bottom fov angle for a given perspective camera.
The camera.
The bottom fov angle in radians.
Returns the camera's focal length.
The camera.
The focal length in pixels or undefined
if not set.
Returns the camera's horizontal field of view.
The camera.
The horizontal fov in radians.
Returns left fov angle for a given perspective camera.
The camera.
The left fov angle in radians.
Returns the camera's principal point (intersection of principal ray and image plane) in NDC coordinates.
The camera.
Optional vector where the principal point coordinates will be copied.
A vector containing the principal point NDC coordinates.
Returns right fov angle for a given perspective camera.
The camera.
The right fov angle in radians.
Returns top fov angle for a given perspective camera.
The camera.
The top fov angle in radians.
Returns the camera's vertical field of view.
The camera.
The vertical fov in radians.
Sets a camera's focal length.
Focal length in pixels. It must be larger than 0.
Viewport height in pixels, used to compute vertical fov.
The new camera's focal length in pixels.
Sets the camera's principal point (intersection of principal ray and image plane) in NDC coordinates.
The camera.
The principal point's NDC coordinates, each coordinate can have values in the open interval (-1,1).
Sets a camera's vertical fov.
Vertical field of view in radians. It'll be clamped to [MIN_FOV_RAD, MAX_FOV_RAD].
Viewport height in pixels, used to compute focal length.
The new camera's vertical fov in radians.
Generated using TypeDoc
Calculates object's world size based on the focal length and it's camera distance.