Esempio n. 1
0
        public void AbsoluteLocationOrder2()
        {
            var pitch = Angle.FromGrad(30);
            var child = GetTreeChildForTopDownLocations(
                new[]
            {
                Frame3D.DoPitch(pitch),
                new Frame3D(4, 0, 0),
            });

            CheckFrameIsWithin(new Frame3D(4 * Geometry.Cos(pitch), 0, -4 * Geometry.Sin(pitch)), child.GetAbsoluteLocation());
            child = GetTreeChildForTopDownLocations(
                new[]
            {
                new Frame3D(4, 0, 0),
                Frame3D.DoPitch(pitch),
            });
            CheckFrameIsWithin(new Frame3D(4, 0, 0, Angle.Zero, pitch, Angle.Zero), child.GetAbsoluteLocation());
        }