Skip to content

point

Model for a point.

CLASS DESCRIPTION
Point

A Point specifies a location in some (x, y) coordinate system.

Classes

Point dataclass

Point(*, x: float, y: float)

A Point specifies a location in some (x, y) coordinate system.

ATTRIBUTE DESCRIPTION
x

A real number that represents the x-coordinate of the point.

TYPE: float

y

A real number that represents the y-coordinate of the point.

TYPE: float

Attributes

x class-attribute instance-attribute
x: float = field(metadata={'type': 'Attribute', 'required': True})

A real number that represents the x-coordinate of the point.

y class-attribute instance-attribute
y: float = field(metadata={'type': 'Attribute', 'required': True})

A real number that represents the y-coordinate of the point.

Functions