Exemple #1
0
        private void Init(double xCord, double yCord, Figurenfarbe farbe)
        {
            this.ID = NextID.ToString();
            NextID++;

            this.Lagepunkt.x = xCord;
            this.Lagepunkt.y = yCord;

            this.Farbe = farbe;
        }
Exemple #2
0
 public RechtwinkligesDreieck(double xCord, double yCord, Figurenfarbe color, double SeitenlaengeA, double SeitenlaengeB)
     : base(xCord, yCord, color)
 {
     this.SeitenlaengeA = SeitenlaengeA;
     this.SeitenlaengeB = SeitenlaengeB;
 }
Exemple #3
0
 public Kreis(double xCord, double yCord, Figurenfarbe color, double radius) : base(xCord, yCord, color)
 {
     this.Radius = radius;
 }
Exemple #4
0
 public Quadrat(double xCord, double yCord, Figurenfarbe color, double seitenlaenge) : base(xCord, yCord, color)
 {
     this.Seitenlaenge = seitenlaenge;
 }
Exemple #5
0
 public Figur(double xCord, double yCord, Figurenfarbe colour)
 {
     this.Init(xCord, yCord, colour);
 }