All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.actelion.research.chem.coords.InventorTemplate Maven / Gradle / Ivy

There is a newer version: 2024.11.2
Show newest version
package com.actelion.research.chem.coords;

import com.actelion.research.chem.StereoMolecule;

public class InventorTemplate {
	private StereoMolecule mFragment;
	private long[] mFFP;
	private double mAVBL;
	private boolean mKeepAbsoluteOrientation;

	public InventorTemplate(StereoMolecule fragment, long[] ffp, boolean keepAbsoluteOrientation) {
		mFragment = fragment;
		mFFP = ffp;
		mKeepAbsoluteOrientation = keepAbsoluteOrientation;
		}

	public boolean keepAbsoluteOrientation() {
		return mKeepAbsoluteOrientation;
	}

	public void normalizeCoordinates() {
		mAVBL = mFragment.getAverageBondLength();
		}

	public double getNormalizedAtomX(int atom) {
		return mFragment.getAtomX(atom) / mAVBL;
		}

	public double getNormalizedAtomY(int atom) {
		return mFragment.getAtomY(atom) / mAVBL;
		}

	public StereoMolecule getFragment() {
		return  mFragment;
		}

	public long[] getFFP() {
		return mFFP;
		}
	}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy