Click or drag to resize
AB4D logo

BaseCameraGetCameraMatrices(BaseCamera, Double, Matrix3D, Matrix3D) Method

GetCameraMatrices gets view and projection matrix of specified Ab3d.PowerToys camera and specified viewport's aspect ratio. The method sets matrices even if TargetViewport3D is not assigned to the camera.

Namespace: Ab3d.Cameras
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static bool GetCameraMatrices(
	BaseCamera camera,
	double viewportAspectRatio,
	out Matrix3D viewMatrix,
	out Matrix3D projectionMatrix
)

Parameters

camera  BaseCamera
camera
viewportAspectRatio  Double
aspect ratio of viewport: width / height
viewMatrix  Matrix3D
view Matrix
projectionMatrix  Matrix3D
projection Matrix

Return Value

Boolean
false when the camera matrixes cannot be calculated
See Also