ostk.mathematics.geometry.d2.object.Polygon¶
- class Polygon(*args, **kwargs)¶
Bases:
Object
Overloaded function.
__init__(self: ostk.mathematics.geometry.d2.object.Polygon, outer_ring: list[ostk.mathematics.geometry.d2.object.Point], inner_rings: list[list[ostk.mathematics.geometry.d2.object.Point]]) -> None
__init__(self: ostk.mathematics.geometry.d2.object.Polygon, outer_ring: list[ostk.mathematics.geometry.d2.object.Point]) -> None
Methods
Overloaded function.
- class Format(self: ostk.mathematics.geometry.d2.Object.Format, value: int)¶
Bases:
pybind11_object
Members:
Undefined
Standard
WKT
- property name¶
- apply_transformation(
- self: ostk.mathematics.geometry.d2.object.Polygon,
- transformation: ostk::mathematics::geometry::d2::Transformation,
- contains(*args, **kwargs)¶
Overloaded function.
contains(self: ostk.mathematics.geometry.d2.object.Polygon, point: ostk.mathematics.geometry.d2.object.Point) -> bool
contains(self: ostk.mathematics.geometry.d2.object.Polygon, point_set: ostk.mathematics.geometry.d2.object.PointSet) -> bool
- difference_with(
- self: ostk.mathematics.geometry.d2.object.Polygon,
- polygon: ostk.mathematics.geometry.d2.object.Polygon,
- get_convex_hull( ) ostk.mathematics.geometry.d2.object.Polygon ¶
- get_edge_at(
- self: ostk.mathematics.geometry.d2.object.Polygon,
- index: int,
- get_edge_count(self: ostk.mathematics.geometry.d2.object.Polygon) int ¶
- get_edges( ) list[ostk.mathematics.geometry.d2.object.Segment] ¶
- get_inner_ring_at(
- self: ostk.mathematics.geometry.d2.object.Polygon,
- index: int,
- get_inner_ring_count(self: ostk.mathematics.geometry.d2.object.Polygon) int ¶
- get_outer_ring( ) ostk.mathematics.geometry.d2.object.LineString ¶
- get_vertex_at(
- self: ostk.mathematics.geometry.d2.object.Polygon,
- index: int,
- get_vertex_count(self: ostk.mathematics.geometry.d2.object.Polygon) int ¶
- get_vertices( ) list[ostk.mathematics.geometry.d2.object.Point] ¶
- intersection_with(
- self: ostk.mathematics.geometry.d2.object.Polygon,
- polygon: ostk.mathematics.geometry.d2.object.Polygon,
- intersects(
- self: ostk.mathematics.geometry.d2.object.Polygon,
- polygon: ostk.mathematics.geometry.d2.object.Polygon,
- is_defined(self: ostk.mathematics.geometry.d2.object.Polygon) bool ¶
- is_near(
- self: ostk.mathematics.geometry.d2.object.Polygon,
- polygon: ostk.mathematics.geometry.d2.object.Polygon,
- tolerance: ostk.core.type.Real,
- polygon: ostk.mathematics.geometry.d2.object.Polygon,
- to_string(
- self: ostk.mathematics.geometry.d2.object.Polygon,
- format: ostk.mathematics.geometry.d2.Object.Format = <Format.Standard: 1>,
- precision: ostk.core.type.Integer = Undefined,
- format: ostk.mathematics.geometry.d2.Object.Format = <Format.Standard: 1>,
- static undefined() ostk.mathematics.geometry.d2.object.Polygon ¶
- union_with(
- self: ostk.mathematics.geometry.d2.object.Polygon,
- polygon: ostk.mathematics.geometry.d2.object.Polygon,