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.ViewingAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax 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 See Also