Point Class
The x, y coordinate of a point on a bounding box or polygon.
New in version v2.1: Support for to_dict and from_dict methods
Constructor
Point(x: float, y: float)
Parameters
Name | Description |
---|---|
x
Required
|
|
y
Required
|
|
Methods
count |
Return number of occurrences of value. |
from_dict |
Converts a dict in the shape of a Point to the model itself. |
index |
Return first index of value. Raises ValueError if the value is not present. |
to_dict |
Returns a dict representation of Point. |
count
Return number of occurrences of value.
count(value, /)
Positional-Only Parameters
Name | Description |
---|---|
value
Required
|
|
from_dict
index
Return first index of value.
Raises ValueError if the value is not present.
index(value, start=0, stop=9223372036854775807, /)
Positional-Only Parameters
Name | Description |
---|---|
value
Required
|
|
start
|
Default value: 0
|
stop
|
Default value: 9223372036854775807
|
to_dict
Attributes
x
x-coordinate
x: float
y
y-coordinate
y: float
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python