from opentrons.types import Point # Creating three points using (x, y, z) coordinates p1 = Point(1, 2, 3) p2 = Point(4, 5, 6) p3 = Point(0, 0, 0)
from opentrons.types import Point # Adding two points p1 = Point(1, 2, 3) p2 = Point(4, 5, 6) result = p1 + p2 print(result) # Output: Point(x=5.0, y=7.0, z=9.0)
from opentrons.types import Point # Subtracting two points p1 = Point(5, 5, 5) p2 = Point(1, 2, 3) result = p1 - p2 print(result) # Output: Point(x=4.0, y=3.0, z=2.0)In the above examples, we are importing the `Point` type from the `opentrons.types` module and using it to create, add, and subtract points. The `Point` type is essential for controlling robot arm movements and automating laboratory tasks within the OpenTrons package library.