tqec.position.FloatPosition3D#
- class FloatPosition3D(x: float, y: float, z: float)[source]#
A 3D float position.
- __init__(x: float, y: float, z: float) None #
Methods
__init__
(x, y, z)as_array
()Return the position as a numpy array.
shift_by
([dx, dy, dz])Shift the position by the given offset.
shift_in_direction
(direction, shift)Shift the position in the given direction by the given shift.
Attributes
x
y
z