MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / Vector3D

Class Vector3D

example_code/item_063.py:187–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185
186print("Example 12")
187class Vector3D(RegisteredSerializable):
188 def __init__(self, x, y, z):
189 super().__init__(x, y, z)
190 self.x, self.y, self.z = x, y, z
191
192before = Vector3D(10, -7, 3)
193print("Before: ", before)

Callers 1

item_063.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected