4 * This software is distributed under a zlib-style license.
\r
5 * See license.txt for more information.
\r
9 using System.Collections.Generic;
\r
11 using NUnit.Framework;
\r
13 using Yubeshi.Japan;
\r
14 using C = YubeshiTest.SampleCoordinates;
\r
16 namespace YubeshiTest.JapanTest
\r
23 public void LlhToJpc9()
\r
25 Jpc jpc = new Jpc(C.SkytreeTop, Jpc.System.IX);
\r
26 Assert.AreEqual(-32158.459, jpc.X, 1e-3);
\r
27 Assert.AreEqual(-2035.907, jpc.Y, 1e-3);
\r
31 public void GetLengthOfMeridianArc()
\r
33 Assert.AreEqual(0.0, Jpc.GetLengthOfMeridianArc(0.0));
\r
34 Assert.AreEqual(4984944.4, Jpc.GetLengthOfMeridianArc(45.0), 0.1);
\r
35 Assert.AreEqual(10001965.7, Jpc.GetLengthOfMeridianArc(90.0), 0.1);
\r
39 public void GetSystemWithNearestOriginTo()
\r
41 Jpc.System s = Jpc.GetSystemWithNearestOriginTo(C.SkytreeTop);
\r
42 Assert.AreEqual(Jpc.System.IX, s);
\r