|  | 
| SceneViewCalculateCameraPlanes(Matrix4x4, Boolean, Vector3, Single, Single, Single) Method | 
            CalculateCameraPlanes sets the zNear and zFar parameters to camera near plane distance and camera far plane distance.
            CalculateCameraPlanes returns false if the calculated values are not correct (are 0, NaN or Infinity). This can happen when camera's matrices are not set.
            
Namespace: Ab4d.SharpEngineAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
 Syntax
Syntaxpublic static bool CalculateCameraPlanes(
	ref Matrix4x4 viewMatrix,
	bool isOrthographicProjection,
	Vector3[] boundingCorners,
	float adjustmentFactor,
	out float zNear,
	out float zFar
)
Parameters
- viewMatrix  Matrix4x4
- viewMatrix
- isOrthographicProjection  Boolean
- true if camera is using Orthographic projection, false for Perspective projection
- boundingCorners  Vector3
- array of Vector3 elements that represents corner positions for BoundingBox (use BoundingBox.GetCorners to get this array)
- adjustmentFactor  Single
- the zNear and zFar values are multiplied by this factor to increase the distance between zNear and zFar (recommended value is 1.05)
- zNear  Single
- out camera near plane distance
- zFar  Single
- out camera far plane distance
Return Value
Booleanreturns false if the calculated values are not correct (are 0, NaN or Infinity). This can happen when camera's matrices are not set.
 See Also
See Also