Point

Represents a point in 2-D space. attributes: x, y

Methods

init

Parameters

namedescriptiondefault

self

x

0

y

0

str

Parameters

namedescriptiondefault

self

add

Adds a Point or tuple.

Parameters

namedescriptiondefault

self

other

add_point

Adds a point.

Parameters

namedescriptiondefault

self

other

add_tuple

Adds a tuple.

Parameters

namedescriptiondefault

self

other

Last updated