molstar
Version:
A comprehensive macromolecular library.
21 lines (20 loc) • 578 B
JavaScript
/**
* Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author David Sehnal <david.sehnal@gmail.com>
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ArrayTrajectory = void 0;
class ArrayTrajectory {
getFrameAtIndex(i) {
return this.frames[i];
}
constructor(frames) {
this.frames = frames;
this.frameCount = frames.length;
this.representative = frames[0];
this.duration = frames.length;
}
}
exports.ArrayTrajectory = ArrayTrajectory;
;