campy.util.point module

Exports a type representing 2- and 3-dimensional points.

These points inherit from tuples, so you can do anything you could otherwise do with tuples (notably, tuple unpacking)

Usage:

origin = Point()
pt = Point(4, 1)
x = origin.x  # => x = 0
y = pt.y      # => y = 1

origin3 = Point3()
pt = Point3(3, 4, 5)
x, y, z = pt
class campy.util.point.Point(x, y)

Bases: tuple

x

Alias for field number 0

y

Alias for field number 1

class campy.util.point.Point3(x, y, z)

Bases: tuple

x

Alias for field number 0

y

Alias for field number 1

z

Alias for field number 2