Beispiel #1
0
        public static GaPoTNumFrame CreateFbdFrame4D()
        {
            var c = Math.Sqrt(0.75d);

            var frame = new GaPoTNumFrame();

            var v1 = new GaPoTNumVector(
                c * Math.Sqrt(8.0d / 9.0d),
                0.0d,
                c / 3.0d
                );

            var v2 = new GaPoTNumVector(
                c * -Math.Sqrt(2.0d / 9.0d),
                c * Math.Sqrt(2.0d / 3.0d),
                c / 3.0d
                );

            var v3 = new GaPoTNumVector(
                -c * Math.Sqrt(2.0d / 9.0d),
                c * -Math.Sqrt(2.0d / 3.0d),
                c / 3.0d
                );

            var v4 = new GaPoTNumVector(
                0.0d,
                0.0d,
                -c
                );

            frame.AppendVectors(v1, v2, v3, v4);

            return(frame);
        }
Beispiel #2
0
        public static GaPoTNumFrame CreateFbdFrame3D()
        {
            var frame = new GaPoTNumFrame();

            var v1 = new GaPoTNumVector(
                1.0d,
                0.0d
                );

            var v2 = new GaPoTNumVector(
                -0.5d,
                0.5d * Math.Sqrt(3.0d)
                );

            var v3 = new GaPoTNumVector(
                -0.5d,
                -0.5d * Math.Sqrt(3.0d)
                );

            frame.AppendVectors(v1, v2, v3);

            return(frame);
        }