Method GetVerticalOrthographicSize
GetVerticalOrthographicSize(Camera, float)
Calculates the vertical orthographic size for a Camera and a given diagonal size.
Declaration
public static float GetVerticalOrthographicSize(this Camera camera, float size)
Parameters
| Type | Name | Description |
|---|---|---|
| Camera | camera | The camera to get the aspect ratio from. |
| float | size | The diagonal orthographic size. |
Returns
| Type | Description |
|---|---|
| float | The vertical orthographic size calculated. |