NGL@1.0.0-beta.7 Home Manual Reference Source Gallery
import Unitcell from 'ngl/src/symmetry/unitcell.js'
public class | source

Unitcell

Unitcell class

Constructor Summary

Public Constructor
public

constructor(params: Object)

Member Summary

Public Members
public
public
public
public
public
public
public
public
public
public

Method Summary

Public Methods
public
public
public

Public Constructors

public constructor(params: Object) source

Params:

NameTypeAttributeDescription
params Object

unitcell parameters

params.a Number

length a

params.b Number

length b

params.c Number

length c

params.alpha Number

angle alpha

params.beta Number

angle beta

params.gamma Number

angle gamma

params.spacegroup String

spacegroup

params.cartToFrac Matrix4
  • optional

transformation matrix from cartesian to fractional coordinates

params.scale Matrix4
  • optional

alias for params.cartToFrac

Public Members

public a: Number source

public alpha: Number source

public b: Number source

public beta: Number source

public c: Number source

public cartToFrac: Matrix4 source

public fracToCart: Matrix4 source

public gamma: Number source

public spacegroup: String source

public volume: Number source

Public Methods

public getCenter() source

public getData() source

public getPosition() source