Click or drag to resize
AB4D logo

BaseCameraGetCameraMatrixes Method (BaseCamera, Double, Matrix3D, Matrix3D)

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

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

Parameters

camera
Type: Ab3d.CamerasBaseCamera
camera
viewportAspectRatio
Type: SystemDouble
aspect ratio of viewport: width / height
viewMatrix
Type: System.Windows.Media.Media3DMatrix3D
view Matrix
projectionMatrix
Type: System.Windows.Media.Media3DMatrix3D
projection Matrix

Return Value

Type: Boolean
false when the camera matrixes cannot be calculated
See Also