__init__ constructor

On this page

init

Initializes a new Point with the given coordinates.

def __init__(self, x, y):
    ...
Parameter Type Description
x float The x-coordinate.
y float The y-coordinate.

Example

from groupdocs.parser.data import Point

p = Point(35.0, 135.0)
print(f"Point at ({p.x}, {p.y})")

See Also

On this page