Language
Edit

CameraExtensions Class

Definition

Extension methods for the Unity's Camera class

public static class CameraExtensions
type CameraExtensions = class
Public Module CameraExtensions
Inheritance
CameraExtensions

Methods

Name Description
GetDistanceForFrustumHeight(Camera, Single)

Gets the distance to the camera that a specific frustum height would be at.

GetFrustumSizeForDistance(Camera, Single)

Gets the frustum size at a given distance from the camera.

GetHorizontalFieldOfViewDegrees(Camera)

Get the horizontal FOV from the stereo camera in degrees

GetHorizontalFieldOfViewRadians(Camera)

Get the horizontal FOV from the stereo camera in radians

IsInFOV(Camera, Vector3)

Test if a point will be rendered on the screen in either eye.

IsInFOVCone(Camera, Vector3, Single)

Test if a point in the cone inscribed into the view frustum of the given camera.

Applies to