BasisChangeCoordinates Method |
Namespace: Novacta.Analytics.Advanced
public static DoubleMatrix ChangeCoordinates( Basis newBasis, DoubleMatrix currentCoordinates, Basis currentBasis )
Exception | Condition |
---|---|
ArgumentNullException | currentCoordinates 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. |
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 and be the
matrix representations
of currentBasis, and newBasis,
respectively, and let be
currentCoordinates, i.e. the
coordinates matrix w.r.t. basis of the points
under study:
Then
method ChangeCoordinates(Basis, DoubleMatrix, Basis)
returns the matrix