CameraEditorUtils.TryGetFrustum

Declaration

public static bool TryGetFrustum(Camera camera, Vector3[] near, Vector3[] far, out float frustumAspect);

Parameters

camera Camera to use.
near The corners of the near plane. (A minimum size of 4 elements is required.)
far The corners of the far plane. (A minimum size of 4 elements is required.)
frustumAspect The aspect ratio of the frustrum.

Returns

bool Whether the frustrum was calculated.

Description

Calculate the frustrum corners.

Corners are calculated in this order: left bottom, left top, right top, right bottom.


Did you find this page useful? Please give it a rating: