molstar
Version:
A comprehensive macromolecular library.
22 lines (21 loc) • 768 B
TypeScript
/**
* Copyright (c) 2018-2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import { NumberArray } from '../../../mol-util/type-helpers';
import { Axes3D } from '../../geometry';
export { PrincipalAxes };
interface PrincipalAxes {
momentsAxes: Axes3D;
boxAxes: Axes3D;
}
declare namespace PrincipalAxes {
function ofPositions(positions: NumberArray): PrincipalAxes;
function calculateMomentsAxes(positions: NumberArray): Axes3D;
/**
* Get the scale/length for each dimension for a box around the axes
* to enclose the given positions
*/
function calculateBoxAxes(positions: NumberArray, momentsAxes: Axes3D): Axes3D;
}