common.ts 447 B

1234567891011121314151617
  1. /**
  2. * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
  3. *
  4. * @author David Sehnal <david.sehnal@gmail.com>
  5. */
  6. import { OrderedSet } from 'mol-data/int'
  7. export interface PositionData {
  8. x: ArrayLike<number>,
  9. y: ArrayLike<number>,
  10. z: ArrayLike<number>,
  11. // subset indices into the x/y/z/radius arrays
  12. indices: OrderedSet,
  13. // optional element radius
  14. radius?: ArrayLike<number>
  15. }