class Point:
def __init__(self):
self.xpoint = self.get_random()
self.ypoint = self.get_random()
def get_random(self):
return random.randrange(1, 100)
class Point:
def get_random(self):
return random.randrange(1, 100)
xpoint = self.get_random()
ypoint = self.get_random()
Why does creating a list result in the same values for option 2 ?
-
What's the significance of calculating angles? What's the logic?
-
Why Counterclockwise turns? What's the logic?
Trigonometry -> Law of cosines
Linear Algebra -> Vectors -> Cross products