hep.wired.feature
Interface Translateable

All Superinterfaces:
Feature
All Known Subinterfaces:
Transformable2D, Transformable3D, Translateable2D, Translateable3D

public interface Translateable
extends Feature

Can calculate translations from screen and model.

Version:
$Id: Translateable.java 8598 2006-08-14 20:38:02Z duns $
Author:
Mark Donszelmann

Method Summary
 double[] getModelTranslation(double[] uvw, ViewPort viewPort)
          Returns Model translation from screen translation.
 double[] getScreenTranslation(double[] xyz, ViewPort viewPort)
          Returns Screen translation from model translation.
 

Method Detail

getModelTranslation

double[] getModelTranslation(double[] uvw,
                             ViewPort viewPort)
Returns Model translation from screen translation. An array of length 3: xyz[] = model(uvw[]). For 2D systems the 3rd coordinate may be ignored. The returned array may have a lifetime up to the next call to this method on this object.


getScreenTranslation

double[] getScreenTranslation(double[] xyz,
                              ViewPort viewPort)
Returns Screen translation from model translation. An array of length 3: uvw[] = model(xyz[]). For 2D systems the 3rd coordinate may be ignored. The returned array may have a lifetime up to the next call to this method on this object.



Copyright © 1996-2013 FreeHEP. All Rights Reserved.