ostk.mathematics.geometry.d2.object.Polygon

class Polygon(*args, **kwargs)

Bases: Object

Overloaded function.

  1. __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

  2. __init__(self: ostk.mathematics.geometry.d2.object.Polygon, outer_ring: list[ostk.mathematics.geometry.d2.object.Point]) -> None

Methods

apply_transformation

contains

Overloaded function.

difference_with

get_convex_hull

get_edge_at

get_edge_count

get_edges

get_inner_ring_at

get_inner_ring_count

get_outer_ring

get_vertex_at

get_vertex_count

get_vertices

intersection_with

intersects

is_defined

is_near

to_string

undefined

union_with

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,
) None
contains(*args, **kwargs)

Overloaded function.

  1. contains(self: ostk.mathematics.geometry.d2.object.Polygon, point: ostk.mathematics.geometry.d2.object.Point) -> bool

  2. 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,
) ostk::mathematics::geometry::d2::Intersection
get_convex_hull(
self: ostk.mathematics.geometry.d2.object.Polygon,
) ostk.mathematics.geometry.d2.object.Polygon
get_edge_at(
self: ostk.mathematics.geometry.d2.object.Polygon,
index: int,
) ostk.mathematics.geometry.d2.object.Segment
get_edge_count(self: ostk.mathematics.geometry.d2.object.Polygon) int
get_edges(
self: ostk.mathematics.geometry.d2.object.Polygon,
) list[ostk.mathematics.geometry.d2.object.Segment]
get_inner_ring_at(
self: ostk.mathematics.geometry.d2.object.Polygon,
index: int,
) ostk.mathematics.geometry.d2.object.LineString
get_inner_ring_count(self: ostk.mathematics.geometry.d2.object.Polygon) int
get_outer_ring(
self: ostk.mathematics.geometry.d2.object.Polygon,
) ostk.mathematics.geometry.d2.object.LineString
get_vertex_at(
self: ostk.mathematics.geometry.d2.object.Polygon,
index: int,
) ostk.mathematics.geometry.d2.object.Point
get_vertex_count(self: ostk.mathematics.geometry.d2.object.Polygon) int
get_vertices(
self: ostk.mathematics.geometry.d2.object.Polygon,
) list[ostk.mathematics.geometry.d2.object.Point]
intersection_with(
self: ostk.mathematics.geometry.d2.object.Polygon,
polygon: ostk.mathematics.geometry.d2.object.Polygon,
) ostk::mathematics::geometry::d2::Intersection
intersects(
self: ostk.mathematics.geometry.d2.object.Polygon,
polygon: ostk.mathematics.geometry.d2.object.Polygon,
) bool
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,
) bool
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,
) ostk.core.type.String
static undefined() ostk.mathematics.geometry.d2.object.Polygon
union_with(
self: ostk.mathematics.geometry.d2.object.Polygon,
polygon: ostk.mathematics.geometry.d2.object.Polygon,
) ostk::mathematics::geometry::d2::object::MultiPolygon