1
2 package hep.wired.heprep.projection;
3
4 import hep.wired.heprep.services.Projection;
5
6 /***
7 * Dummy projection which changes nothing.
8 *
9 * @author Mark Donszelmann
10 * @version $Id: NullProjection.java 645 2005-02-27 02:23:41Z duns $
11 */
12
13 public class NullProjection extends AbstractProjection {
14
15 /***
16 * Creates a null projection.
17 */
18 public NullProjection() {
19 super();
20 }
21
22 public String getFormula() {
23 return "(u,v,w) = Identity(x,y,z)";
24 }
25
26 public double[] transform(double[] xyz) {
27 return xyz;
28 }
29
30 public double[][] transform(double[][] xyz, int n) {
31 return xyz;
32 }
33
34 public double[] deltaTransform(double[] xyz) {
35 return xyz;
36 }
37
38 public double[] inverseTransform(double[] uvw) throws UnsupportedOperationException {
39 return uvw;
40 }
41
42 public double[] inverseDeltaTransform(double[] uvw) throws UnsupportedOperationException {
43 return uvw;
44 }
45
46 public Projection copy() {
47 return new NullProjection();
48 }
49 }