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); }
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); }
public S3DLine(S3DPoint p1, S3DPoint p2) { this.p1 = p1; this.p2 = p2; }
public void SetSize(S3DPoint size) { this.size = size; UpdateSize(); }
public void SetPos(S3DPoint pos) { this.pos = pos; UpdatePos(); }
public void SetPos(S3DPoint pos) { this.pos = pos; }