Click or drag to resize
AB4D logo

BaseCameraGetCameraPlaneOrientation Method (ProjectionCamera, Vector3D, Vector3D, Vector3D)

GetCameraPlaneOrientation sets plane width and height vectors that can be used to orient the plane 3D model so that it is aligned with the camera view.

Namespace:  Ab3d.Cameras
Assembly:  Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 10.1.8147.1045
Syntax
C#
public static void GetCameraPlaneOrientation(
	ProjectionCamera projectionCamera,
	out Vector3D planeNormalVector3D,
	out Vector3D widthVector3D,
	out Vector3D heightVector3D
)

Parameters

projectionCamera
Type: System.Windows.Media.Media3DProjectionCamera
WPF's ProjectionCamera that is used to get plane orientation
planeNormalVector3D
Type: System.Windows.Media.Media3DVector3D
out Vector3D that specifies the plane's normal vector
widthVector3D
Type: System.Windows.Media.Media3DVector3D
out Vector3D that specifies the plane's width direction
heightVector3D
Type: System.Windows.Media.Media3DVector3D
out Vector3D that specifies the plane's height direction (same as camera's up vector)
See Also