KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > physics > relativity > MinkowskiMetric


1 package JSci.physics.relativity;
2
3 /**
4 * The MinkowskiMetric class encapsulates the Minkowski metric.
5 * @version 1.0
6 * @author Mark Hale
7 */

8 public final class MinkowskiMetric extends Rank2Tensor {
9         /**
10         * Constructs the Minkowski metric.
11         */

12         public MinkowskiMetric() {
13                 rank2[0][0]=1.0;
14                 rank2[1][1]=rank2[2][2]=rank2[3][3]=-1.0;
15         }
16 }
17
18
Popular Tags