Click or drag to resize

BasisChangeCoordinates Method

Gets coordinates of vectors with respect to a new basis given the coordinates with respect to another basis.

Namespace:  Novacta.Analytics.Advanced
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
public static DoubleMatrix ChangeCoordinates(
	Basis newBasis,
	DoubleMatrix currentCoordinates,
	Basis currentBasis
)

Parameters

newBasis
Type: Novacta.Analytics.AdvancedBasis
The basis which the new coordinates must be referred to.
currentCoordinates
Type: Novacta.AnalyticsDoubleMatrix
The current coordinates.
currentBasis
Type: Novacta.Analytics.AdvancedBasis
The current basis.

Return Value

Type: DoubleMatrix
A matrix of coordinates in the new basis.
Exceptions
ExceptionCondition
ArgumentNullExceptioncurrentCoordinates is null.
-or-
newBasis is null.
-or-
currentBasis is null.
ArgumentOutOfRangeException The Dimension of currentBasis is not equal to the dimension of newBasis.
-or-
The number of columns of currentCoordinates is not equal to the Dimension of newBasis.
Remarks

Each row in currentCoordinates is interpreted as the coordinates of a point. Hence, a matrix is returned having the same dimensions of currentCoordinates, in which the i-th row represents the coordinates of the i-th point with respect to the new basis.

Let LaTeX equation and LaTeX equation be the matrix representations of currentBasis, and newBasis, respectively, and let LaTeX equation be currentCoordinates, i.e. the coordinates matrix w.r.t. basis LaTeX equation of the points LaTeX equation under study:

LaTeX equation

Then method ChangeCoordinates(Basis, DoubleMatrix, Basis) returns the matrix

LaTeX equation

See Also