Click or drag to resize

Graph3DControllerGetCoordinateSystemBasedOnLayerPlaneFacingTheCamera Method

Gets the principal coordinate system that results of the camera facing a layer. The plane of the layer that best faced the camera is used for the calculations. The normal of that layer is returned as z-axis, the vector that best matches the up-vector of the camera is becoming the y-axis, and the x-axis results from the z-axis and the y-axis.

Namespace: Altaxo.Gui.Graph.Graph3D.Viewing
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static void GetCoordinateSystemBasedOnLayerPlaneFacingTheCamera(
	CameraBase camera,
	HostLayer activeLayer,
	out Matrix3x3 transformation
)

Parameters

camera  CameraBase
The camera.
activeLayer  HostLayer
The active layer of the graph document.
transformation  Matrix3x3
Matrix that contains the principal axes as described above. The axes coordinates are in the coordinates of the layer provided in the argument activeLayer.
Exceptions
ExceptionCondition
InvalidProgramExceptionThere should always be a plane of a rectangle that can be hit!
See Also