Examples of SurfaceTriangle()


Examples of gov.fnal.eag.healpix.PixTools.SurfaceTriangle()

  public void testSurfaceTriangle() throws Exception {
    Vector3d v1 = new Vector3d(1.0, 0.0, 0.0);
    Vector3d v2 = new Vector3d(0.0, 1.0, 0.0);
    Vector3d v3 = new Vector3d(0.0, 0.0, 1.0);
    PixTools pt = new PixTools();
    double res = pt.SurfaceTriangle(v1, v2, v3);
    System.out.println("Triangle surface is=" + res / Math.PI
        + " steredians");
    assertEquals("Triangle surface=" + res, 0.5, res / Math.PI, 1e-10);
    System.out.println(" test of SurfaceTriangle is done");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.