MCPcopy Create free account
hub / github.com/csaez/mscreen / __init__

Method __init__

mscreen.py:404–412  ·  view source on GitHub ↗
(self, transform=None, size=1.0)

Source from the content-addressed store, hash-verified

402 Z_COLOR = COLOR_BLUE
403
404 def __init__(self, transform=None, size=1.0):
405 super(TransformPrim, self).__init__(transform)
406 # Notice how 3 vectors can be used to compose the matrix (depending on
407 # your use case, composition can provide a more convenient/clean way to
408 # extend classes than inheritance).
409 self._xAxis = VectorPrim((1, 0, 0), color=TransformPrim.X_COLOR)
410 self._yAxis = VectorPrim((0, 1, 0), color=TransformPrim.Y_COLOR)
411 self._zAxis = VectorPrim((0, 0, 1), color=TransformPrim.Z_COLOR)
412 self.size = size
413
414 @property
415 def size(self):

Callers

nothing calls this directly

Calls 2

VectorPrimClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected