TensorData class to store tensors like NMR data and such.

Classes

TensorData

Methods

(inner) equivalentEuler(eulerAngles, activeopt, degreesopt) → {Array}

Calculates equivalent Euler angles for a given set of Euler angles.

Parameters:
NameTypeAttributesDefaultDescription
eulerAnglesArray

An array of three Euler angles [alpha, beta, gamma] in radians.

activeboolean<optional>
true

Whether the rotation is active or passive.

degreesboolean<optional>
false

Whether to return the angles in degrees. If false, the angles are returned in radians.

Returns:

An array of four sets of equivalent Euler angles. Each set of angles is an array of three elements.

The first set of angles is the original Euler angles. The remaining sets are calculated based on the convention and whether the rotation is active or passive.

If degrees is true, all angles are converted to degrees.

Type: 
Array

(inner) eulerRotation(alpha, beta, gamma, PAS, mode, active) → {mathjs.Matrix}

Parameters:
NameTypeDescription
alpha*

in radians

beta*

in radians

gamma*

in radians

PAS*

(principal axis system)

mode*

(e.g. 'zyz')

active*

(true: active rotation, false: passive rotation)

Returns:

rotation matrix

Type: 
mathjs.Matrix