Click or drag to resize

CameraBaseWithLookAtRHMatrix(Matrix4x3, Double) Method

Creates a new camera which has the LookAtRH matrix as provided in the argument. Up and eye vector as well as eye position are calculated from the provided matrix, the target position is calculated from the eye vector and the provided newDistance value.

Namespace: Altaxo.Graph.Graph3D.Camera
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public CameraBase WithLookAtRHMatrix(
	Matrix4x3 l,
	double newDistance
)

Parameters

l  Matrix4x3
The LookAtRH matrix. This matrix must have a determinant of 1, and each of the vectors {M11, M21, M31}, {M12, M22, M32}, {M13, M23, M33} must have a length of 1.
newDistance  Double
The distance between camera eye and target of the new camera.

Return Value

CameraBase
A new camera which has the LookAtRH matrix as provided in the argument. Up and eye vector as well as eye position are calculated from the provided matrix, the target position is calculated from the eye vector and the provided newDistance value.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException
See Also