org.jmol.util
Class SimpleUnitCell

java.lang.Object
  extended by org.jmol.util.SimpleUnitCell
Direct Known Subclasses:
UnitCell

public class SimpleUnitCell
extends Object

general-purpose simple unit cell for calculations and as a super-class of unitcell, which is only part of Symmetry allows one-dimensional (polymer) and two-dimensional (slab) periodicity


Field Summary
protected  float a
           
protected  double a_
           
protected  float alpha
           
protected  float b
           
protected  double b_
           
protected  float beta
           
protected  float c
           
protected  double c_
           
protected  double cA_
           
protected  double cB_
           
protected  double cosAlpha
           
protected  double cosBeta
           
protected  double cosGamma
           
protected  int dimension
           
protected  float gamma
           
protected  Matrix4f matrixCartesianToFractional
           
protected  Matrix4f matrixCtoFAbsolute
           
protected  Matrix4f matrixFractionalToCartesian
           
protected  Matrix4f matrixFtoCAbsolute
           
protected  float[] notionalUnitcell
           
protected  double sinAlpha
           
protected  double sinBeta
           
protected  double sinGamma
           
protected static float toRadians
           
protected  double volume
           
 
Constructor Summary
SimpleUnitCell(float[] parameters)
           
 
Method Summary
 float getInfo(int infoType)
           
 float[] getNotionalUnitCell()
           
 float[] getUnitCellAsArray()
           
 boolean isPolymer()
           
 boolean isSlab()
           
static boolean isValid(float[] parameters)
           
 void toCartesian(Point3f pt, boolean isAbsolute)
           
 void toFractional(Point3f pt, boolean isAbsolute)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

notionalUnitcell

protected float[] notionalUnitcell

matrixCartesianToFractional

protected Matrix4f matrixCartesianToFractional

matrixFractionalToCartesian

protected Matrix4f matrixFractionalToCartesian

toRadians

protected static final float toRadians
See Also:
Constant Field Values

a

protected float a

b

protected float b

c

protected float c

alpha

protected float alpha

beta

protected float beta

gamma

protected float gamma

cosAlpha

protected double cosAlpha

sinAlpha

protected double sinAlpha

cosBeta

protected double cosBeta

sinBeta

protected double sinBeta

cosGamma

protected double cosGamma

sinGamma

protected double sinGamma

volume

protected double volume

cA_

protected double cA_

cB_

protected double cB_

a_

protected double a_

b_

protected double b_

c_

protected double c_

dimension

protected int dimension

matrixCtoFAbsolute

protected Matrix4f matrixCtoFAbsolute

matrixFtoCAbsolute

protected Matrix4f matrixFtoCAbsolute
Constructor Detail

SimpleUnitCell

public SimpleUnitCell(float[] parameters)
Method Detail

isValid

public static boolean isValid(float[] parameters)

toCartesian

public final void toCartesian(Point3f pt,
                              boolean isAbsolute)

toFractional

public final void toFractional(Point3f pt,
                               boolean isAbsolute)

getNotionalUnitCell

public final float[] getNotionalUnitCell()

getUnitCellAsArray

public final float[] getUnitCellAsArray()

isPolymer

public boolean isPolymer()

isSlab

public boolean isSlab()

getInfo

public final float getInfo(int infoType)