Standardwerte angepasst
This commit is contained in:
parent
82d2f60a8f
commit
ee93b84ec0
|
@ -4,7 +4,7 @@ import math
|
||||||
|
|
||||||
|
|
||||||
class Circle:
|
class Circle:
|
||||||
def __init__(self, name: str, filepath: str, length=20, height=20, radius=2, distance=4.5, offset=50):
|
def __init__(self, name: str, filepath: str, length=50, height=50, radius=2, distance=4.5, offset=50):
|
||||||
assert length >= 0, "length can not be negative"
|
assert length >= 0, "length can not be negative"
|
||||||
assert height >= 0, "height can not be negative"
|
assert height >= 0, "height can not be negative"
|
||||||
assert radius >= 0, "radius can not be negative"
|
assert radius >= 0, "radius can not be negative"
|
||||||
|
@ -194,7 +194,7 @@ class Hexagon:
|
||||||
|
|
||||||
|
|
||||||
class Triangle:
|
class Triangle:
|
||||||
def __init__(self, name: str, filepath: str, length=20, height=20, side_length=2, bridge_width=0.5):
|
def __init__(self, name: str, filepath: str, length=50, height=50, side_length=2, bridge_width=0.5):
|
||||||
assert length >= 0, "length can not be negative"
|
assert length >= 0, "length can not be negative"
|
||||||
assert height >= 0, "height can not be negative"
|
assert height >= 0, "height can not be negative"
|
||||||
assert side_length >= 0, "side length can not be negative"
|
assert side_length >= 0, "side length can not be negative"
|
||||||
|
|
Loading…
Reference in New Issue