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
22 public void LlhToJpc9()
\r
24 Jpc jpc = new Jpc(C.SkyTreeTop, Jpc.System.IX);
\r
25 Assert.AreEqual(-32167.4434696, jpc.X, 1e-3);
\r
26 Assert.AreEqual(-2046.2245495, jpc.Y, 1e-3);
\r
30 public void GetLengthOfMeridianArc()
\r
32 Assert.AreEqual(0.0, Jpc.GetLengthOfMeridianArc(0.0));
\r
33 Assert.AreEqual(4984944.4, Jpc.GetLengthOfMeridianArc(45.0), 0.1);
\r
34 Assert.AreEqual(10001965.7, Jpc.GetLengthOfMeridianArc(90.0), 0.1);
\r