コード例 #1
0
ファイル: RubikCube.cs プロジェクト: paulbarbu/magic-cube
        public RubikCube(CubeFace[,] projection, int size, Point3D o, TimeSpan duration, double len = 1, double space = 0.1)
        {
            this.size = size;
            this.origin = o;
            this.edge_len = len;
            this.space = space;
            this.projection = new Cube2D(size, projection);
            this.animationDuration = duration;

            createCubeFromProjection();
        }
コード例 #2
0
ファイル: RubikCube.cs プロジェクト: lenkasetGitHub/3D
        public RubikCube(CubeFace[,] projection, int size, Point3D o, TimeSpan duration, double len = 1, double space = 0.1)
        {
            this.size              = size;
            this.origin            = o;
            this.edge_len          = len;
            this.space             = space;
            this.projection        = new Cube2D(size, projection);
            this.animationDuration = duration;

            createCubeFromProjection();
        }