11 lines
198 B
Python
11 lines
198 B
Python
import vectors
|
|
|
|
class Triangle:
|
|
def __init__(self, coords):
|
|
self.coords = coords # Matrix3x3
|
|
self.object_id = None
|
|
self.color = None
|
|
|
|
def __getitem__(self, key):
|
|
return self.coords[key]
|