예제 #1
0
        public S3DPanel(S3DPoint pos, SDPoint size, Direction direction = Direction.Top)
        {
            this.pos       = pos;
            this.size      = size;
            this.direction = direction;

            dif_color = DX.GetColorU8(255, 0, 0, 0);
            spc_color = DX.GetColorU8(0, 0, 0, 255);
        }
예제 #2
0
        public S3DCube(S3DPoint pos, S3DPoint size)
        {
            this.pos  = pos;
            this.size = size;

            panels[0] = new S3DPanel(new S3DPoint(pos.x, pos.y + size.y / 2.0, pos.z), new SDPoint(size.x, size.z), S3DPanel.Direction.Top);
            panels[1] = new S3DPanel(new S3DPoint(pos.x, pos.y - size.y / 2.0, pos.z), new SDPoint(size.x, size.z), S3DPanel.Direction.Top);
            panels[2] = new S3DPanel(new S3DPoint(pos.x, pos.y, pos.z - size.z / 2.0), new SDPoint(size.x, size.y), S3DPanel.Direction.Wall_NS);
            panels[3] = new S3DPanel(new S3DPoint(pos.x, pos.y, pos.z + size.z / 2.0), new SDPoint(size.x, size.y), S3DPanel.Direction.Wall_NS);
            panels[4] = new S3DPanel(new S3DPoint(pos.x - size.x / 2.0, pos.y, pos.z), new SDPoint(size.z, size.y), S3DPanel.Direction.Wall_EW);
            panels[5] = new S3DPanel(new S3DPoint(pos.x + size.x / 2.0, pos.y, pos.z), new SDPoint(size.z, size.y), S3DPanel.Direction.Wall_EW);
        }
예제 #3
0
 public S3DLine(S3DPoint p1, S3DPoint p2)
 {
     this.p1 = p1;
     this.p2 = p2;
 }
예제 #4
0
 public void SetSize(S3DPoint size)
 {
     this.size = size;
     UpdateSize();
 }
예제 #5
0
 public void SetPos(S3DPoint pos)
 {
     this.pos = pos;
     UpdatePos();
 }
예제 #6
0
 public void SetPos(S3DPoint pos)
 {
     this.pos = pos;
 }