Click or drag to resize
Ab4d.SharpEngine logo

SceneViewCalculateCameraPlanes(ICamera, Single, Single) Method

CalculateCameraPlanes sets the zNear and zFar parameters to camera near plane distance and camera far plane distance. The values are calculated with using the bounding box of the current scene and specified camera. 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.SharpEngine
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntax
C#
public bool CalculateCameraPlanes(
	ICamera camera,
	out float zNear,
	out float zFar
)

Parameters

camera  ICamera
camera as ICamera
zNear  Single
out camera near plane distance
zFar  Single
out camera far plane distance

Return Value

Boolean
returns 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