open-space-toolkit-mathematics 4.3.2__py311-none-manylinux2014_x86_64.whl → 4.4.1__py311-none-manylinux2014_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of open-space-toolkit-mathematics might be problematic. Click here for more details.
- {open_space_toolkit_mathematics-4.3.2.dist-info → open_space_toolkit_mathematics-4.4.1.dist-info}/METADATA +3 -3
- {open_space_toolkit_mathematics-4.3.2.dist-info → open_space_toolkit_mathematics-4.4.1.dist-info}/RECORD +25 -13
- {open_space_toolkit_mathematics-4.3.2.dist-info → open_space_toolkit_mathematics-4.4.1.dist-info}/WHEEL +1 -1
- ostk/mathematics/OpenSpaceToolkitMathematicsPy.cpython-311-x86_64-linux-gnu.so +0 -0
- ostk/mathematics/__init__.pyi +11 -0
- ostk/mathematics/curve_fitting/__init__.pyi +65 -0
- ostk/mathematics/curve_fitting/interpolator.pyi +46 -0
- ostk/mathematics/geometry/__init__.pyi +178 -0
- ostk/mathematics/geometry/d2/__init__.pyi +315 -0
- ostk/mathematics/geometry/d2/object.pyi +405 -0
- ostk/mathematics/geometry/d3/__init__.pyi +351 -0
- ostk/mathematics/geometry/d3/object.pyi +837 -0
- ostk/mathematics/geometry/d3/transformation/__init__.pyi +3 -0
- ostk/mathematics/geometry/d3/transformation/rotation.pyi +421 -0
- ostk/mathematics/libopen-space-toolkit-mathematics.so.4 +0 -0
- ostk/mathematics/object.pyi +123 -0
- ostk/mathematics/solver.pyi +147 -0
- ostk/mathematics/test/geometry/d2/conftest.py +6 -9
- ostk/mathematics/test/geometry/d2/object/test_composite.py +4 -7
- ostk/mathematics/test/geometry/d2/object/test_multipolygon.py +3 -10
- ostk/mathematics/test/geometry/d2/object/test_point_set.py +3 -6
- ostk/mathematics/test/geometry/d3/object/test_point_set.py +5 -8
- ostk/mathematics/test/solver/test_numerical_solver.py +2 -2
- {open_space_toolkit_mathematics-4.3.2.dist-info → open_space_toolkit_mathematics-4.4.1.dist-info}/top_level.txt +0 -0
- {open_space_toolkit_mathematics-4.3.2.dist-info → open_space_toolkit_mathematics-4.4.1.dist-info}/zip-safe +0 -0
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
import numpy
|
|
3
|
+
import ostk.core.type
|
|
4
|
+
import typing
|
|
5
|
+
from . import object
|
|
6
|
+
__all__ = ['Intersection', 'Object', 'Transformation', 'object']
|
|
7
|
+
class Intersection:
|
|
8
|
+
class Type:
|
|
9
|
+
"""
|
|
10
|
+
Members:
|
|
11
|
+
|
|
12
|
+
Undefined
|
|
13
|
+
|
|
14
|
+
Empty
|
|
15
|
+
|
|
16
|
+
Point
|
|
17
|
+
|
|
18
|
+
PointSet
|
|
19
|
+
|
|
20
|
+
Line
|
|
21
|
+
|
|
22
|
+
LineString
|
|
23
|
+
|
|
24
|
+
Segment
|
|
25
|
+
|
|
26
|
+
Polygon
|
|
27
|
+
|
|
28
|
+
Complex
|
|
29
|
+
"""
|
|
30
|
+
Complex: typing.ClassVar[Intersection.Type] # value = <Type.Complex: 8>
|
|
31
|
+
Empty: typing.ClassVar[Intersection.Type] # value = <Type.Empty: 1>
|
|
32
|
+
Line: typing.ClassVar[Intersection.Type] # value = <Type.Line: 4>
|
|
33
|
+
LineString: typing.ClassVar[Intersection.Type] # value = <Type.LineString: 6>
|
|
34
|
+
Point: typing.ClassVar[Intersection.Type] # value = <Type.Point: 2>
|
|
35
|
+
PointSet: typing.ClassVar[Intersection.Type] # value = <Type.PointSet: 3>
|
|
36
|
+
Polygon: typing.ClassVar[Intersection.Type] # value = <Type.Polygon: 7>
|
|
37
|
+
Segment: typing.ClassVar[Intersection.Type] # value = <Type.Segment: 5>
|
|
38
|
+
Undefined: typing.ClassVar[Intersection.Type] # value = <Type.Undefined: 0>
|
|
39
|
+
__members__: typing.ClassVar[dict[str, Intersection.Type]] # value = {'Undefined': <Type.Undefined: 0>, 'Empty': <Type.Empty: 1>, 'Point': <Type.Point: 2>, 'PointSet': <Type.PointSet: 3>, 'Line': <Type.Line: 4>, 'LineString': <Type.LineString: 6>, 'Segment': <Type.Segment: 5>, 'Polygon': <Type.Polygon: 7>, 'Complex': <Type.Complex: 8>}
|
|
40
|
+
@staticmethod
|
|
41
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
42
|
+
...
|
|
43
|
+
def __eq__(self, other: typing.Any) -> bool:
|
|
44
|
+
...
|
|
45
|
+
def __getstate__(self) -> int:
|
|
46
|
+
...
|
|
47
|
+
def __hash__(self) -> int:
|
|
48
|
+
...
|
|
49
|
+
def __index__(self) -> int:
|
|
50
|
+
...
|
|
51
|
+
def __init__(self, value: int) -> None:
|
|
52
|
+
...
|
|
53
|
+
def __int__(self) -> int:
|
|
54
|
+
...
|
|
55
|
+
def __ne__(self, other: typing.Any) -> bool:
|
|
56
|
+
...
|
|
57
|
+
def __repr__(self) -> str:
|
|
58
|
+
...
|
|
59
|
+
def __setstate__(self, state: int) -> None:
|
|
60
|
+
...
|
|
61
|
+
def __str__(self) -> str:
|
|
62
|
+
...
|
|
63
|
+
@property
|
|
64
|
+
def name(self) -> str:
|
|
65
|
+
...
|
|
66
|
+
@property
|
|
67
|
+
def value(self) -> int:
|
|
68
|
+
...
|
|
69
|
+
__hash__: typing.ClassVar[None] = None
|
|
70
|
+
@staticmethod
|
|
71
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
72
|
+
...
|
|
73
|
+
@staticmethod
|
|
74
|
+
def empty() -> Intersection:
|
|
75
|
+
...
|
|
76
|
+
@staticmethod
|
|
77
|
+
def line(line: object.Line) -> Intersection:
|
|
78
|
+
...
|
|
79
|
+
@staticmethod
|
|
80
|
+
def point(point: object.Point) -> Intersection:
|
|
81
|
+
...
|
|
82
|
+
@staticmethod
|
|
83
|
+
def point_set(point_set: object.PointSet) -> Intersection:
|
|
84
|
+
...
|
|
85
|
+
@staticmethod
|
|
86
|
+
def segment(segment: object.Segment) -> Intersection:
|
|
87
|
+
...
|
|
88
|
+
@staticmethod
|
|
89
|
+
def string_from_type(arg0: typing.Any) -> ostk.core.type.String:
|
|
90
|
+
...
|
|
91
|
+
@staticmethod
|
|
92
|
+
def undefined() -> Intersection:
|
|
93
|
+
...
|
|
94
|
+
def __add__(self, arg0: Intersection) -> Intersection:
|
|
95
|
+
...
|
|
96
|
+
def __eq__(self, arg0: Intersection) -> bool:
|
|
97
|
+
...
|
|
98
|
+
def __iadd__(self, arg0: Intersection) -> Intersection:
|
|
99
|
+
...
|
|
100
|
+
def __ne__(self, arg0: Intersection) -> bool:
|
|
101
|
+
...
|
|
102
|
+
def __repr__(self) -> str:
|
|
103
|
+
...
|
|
104
|
+
def __str__(self) -> str:
|
|
105
|
+
...
|
|
106
|
+
def access_composite(self) -> object.Composite:
|
|
107
|
+
...
|
|
108
|
+
def as_composite(self) -> object.Composite:
|
|
109
|
+
...
|
|
110
|
+
def as_line(self) -> object.Line:
|
|
111
|
+
...
|
|
112
|
+
def as_line_string(self) -> object.LineString:
|
|
113
|
+
...
|
|
114
|
+
def as_point(self) -> object.Point:
|
|
115
|
+
...
|
|
116
|
+
def as_point_set(self) -> object.PointSet:
|
|
117
|
+
...
|
|
118
|
+
def as_polygon(self) -> object.Polygon:
|
|
119
|
+
...
|
|
120
|
+
def as_segment(self) -> object.Segment:
|
|
121
|
+
...
|
|
122
|
+
def get_type(self) -> ...:
|
|
123
|
+
...
|
|
124
|
+
def is_complex(self) -> bool:
|
|
125
|
+
...
|
|
126
|
+
def is_composite(self) -> bool:
|
|
127
|
+
...
|
|
128
|
+
def is_defined(self) -> bool:
|
|
129
|
+
...
|
|
130
|
+
def is_empty(self) -> bool:
|
|
131
|
+
...
|
|
132
|
+
def is_line(self) -> bool:
|
|
133
|
+
...
|
|
134
|
+
def is_line_string(self) -> bool:
|
|
135
|
+
...
|
|
136
|
+
def is_point(self) -> bool:
|
|
137
|
+
...
|
|
138
|
+
def is_point_set(self) -> bool:
|
|
139
|
+
...
|
|
140
|
+
def is_polygon(self) -> bool:
|
|
141
|
+
...
|
|
142
|
+
def is_segment(self) -> bool:
|
|
143
|
+
...
|
|
144
|
+
class Object:
|
|
145
|
+
class Format:
|
|
146
|
+
"""
|
|
147
|
+
Members:
|
|
148
|
+
|
|
149
|
+
Undefined
|
|
150
|
+
|
|
151
|
+
Standard
|
|
152
|
+
|
|
153
|
+
WKT
|
|
154
|
+
"""
|
|
155
|
+
Standard: typing.ClassVar[Object.Format] # value = <Format.Standard: 1>
|
|
156
|
+
Undefined: typing.ClassVar[Object.Format] # value = <Format.Undefined: 0>
|
|
157
|
+
WKT: typing.ClassVar[Object.Format] # value = <Format.WKT: 2>
|
|
158
|
+
__members__: typing.ClassVar[dict[str, Object.Format]] # value = {'Undefined': <Format.Undefined: 0>, 'Standard': <Format.Standard: 1>, 'WKT': <Format.WKT: 2>}
|
|
159
|
+
@staticmethod
|
|
160
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
161
|
+
...
|
|
162
|
+
def __eq__(self, other: typing.Any) -> bool:
|
|
163
|
+
...
|
|
164
|
+
def __getstate__(self) -> int:
|
|
165
|
+
...
|
|
166
|
+
def __hash__(self) -> int:
|
|
167
|
+
...
|
|
168
|
+
def __index__(self) -> int:
|
|
169
|
+
...
|
|
170
|
+
def __init__(self, value: int) -> None:
|
|
171
|
+
...
|
|
172
|
+
def __int__(self) -> int:
|
|
173
|
+
...
|
|
174
|
+
def __ne__(self, other: typing.Any) -> bool:
|
|
175
|
+
...
|
|
176
|
+
def __repr__(self) -> str:
|
|
177
|
+
...
|
|
178
|
+
def __setstate__(self, state: int) -> None:
|
|
179
|
+
...
|
|
180
|
+
def __str__(self) -> str:
|
|
181
|
+
...
|
|
182
|
+
@property
|
|
183
|
+
def name(self) -> str:
|
|
184
|
+
...
|
|
185
|
+
@property
|
|
186
|
+
def value(self) -> int:
|
|
187
|
+
...
|
|
188
|
+
__hash__: typing.ClassVar[None] = None
|
|
189
|
+
@staticmethod
|
|
190
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
191
|
+
...
|
|
192
|
+
def __eq__(self, arg0: Object) -> bool:
|
|
193
|
+
...
|
|
194
|
+
def __ne__(self, arg0: Object) -> bool:
|
|
195
|
+
...
|
|
196
|
+
def __repr__(self) -> str:
|
|
197
|
+
...
|
|
198
|
+
def __str__(self) -> str:
|
|
199
|
+
...
|
|
200
|
+
def apply_transformation(self, transformation: typing.Any) -> None:
|
|
201
|
+
...
|
|
202
|
+
def contains(self, object: Object) -> bool:
|
|
203
|
+
...
|
|
204
|
+
def intersects(self, object: Object) -> bool:
|
|
205
|
+
...
|
|
206
|
+
def is_defined(self) -> bool:
|
|
207
|
+
...
|
|
208
|
+
class Transformation:
|
|
209
|
+
class Type:
|
|
210
|
+
"""
|
|
211
|
+
Members:
|
|
212
|
+
|
|
213
|
+
Undefined
|
|
214
|
+
|
|
215
|
+
Identity
|
|
216
|
+
|
|
217
|
+
Translation
|
|
218
|
+
|
|
219
|
+
Rotation
|
|
220
|
+
|
|
221
|
+
Scaling
|
|
222
|
+
|
|
223
|
+
Reflection
|
|
224
|
+
|
|
225
|
+
Shear
|
|
226
|
+
|
|
227
|
+
Affine
|
|
228
|
+
"""
|
|
229
|
+
Affine: typing.ClassVar[Transformation.Type] # value = <Type.Affine: 7>
|
|
230
|
+
Identity: typing.ClassVar[Transformation.Type] # value = <Type.Identity: 1>
|
|
231
|
+
Reflection: typing.ClassVar[Transformation.Type] # value = <Type.Reflection: 5>
|
|
232
|
+
Rotation: typing.ClassVar[Transformation.Type] # value = <Type.Rotation: 3>
|
|
233
|
+
Scaling: typing.ClassVar[Transformation.Type] # value = <Type.Scaling: 4>
|
|
234
|
+
Shear: typing.ClassVar[Transformation.Type] # value = <Type.Shear: 6>
|
|
235
|
+
Translation: typing.ClassVar[Transformation.Type] # value = <Type.Translation: 2>
|
|
236
|
+
Undefined: typing.ClassVar[Transformation.Type] # value = <Type.Undefined: 0>
|
|
237
|
+
__members__: typing.ClassVar[dict[str, Transformation.Type]] # value = {'Undefined': <Type.Undefined: 0>, 'Identity': <Type.Identity: 1>, 'Translation': <Type.Translation: 2>, 'Rotation': <Type.Rotation: 3>, 'Scaling': <Type.Scaling: 4>, 'Reflection': <Type.Reflection: 5>, 'Shear': <Type.Shear: 6>, 'Affine': <Type.Affine: 7>}
|
|
238
|
+
@staticmethod
|
|
239
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
240
|
+
...
|
|
241
|
+
def __eq__(self, other: typing.Any) -> bool:
|
|
242
|
+
...
|
|
243
|
+
def __getstate__(self) -> int:
|
|
244
|
+
...
|
|
245
|
+
def __hash__(self) -> int:
|
|
246
|
+
...
|
|
247
|
+
def __index__(self) -> int:
|
|
248
|
+
...
|
|
249
|
+
def __init__(self, value: int) -> None:
|
|
250
|
+
...
|
|
251
|
+
def __int__(self) -> int:
|
|
252
|
+
...
|
|
253
|
+
def __ne__(self, other: typing.Any) -> bool:
|
|
254
|
+
...
|
|
255
|
+
def __repr__(self) -> str:
|
|
256
|
+
...
|
|
257
|
+
def __setstate__(self, state: int) -> None:
|
|
258
|
+
...
|
|
259
|
+
def __str__(self) -> str:
|
|
260
|
+
...
|
|
261
|
+
@property
|
|
262
|
+
def name(self) -> str:
|
|
263
|
+
...
|
|
264
|
+
@property
|
|
265
|
+
def value(self) -> int:
|
|
266
|
+
...
|
|
267
|
+
__hash__: typing.ClassVar[None] = None
|
|
268
|
+
@staticmethod
|
|
269
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
270
|
+
...
|
|
271
|
+
@staticmethod
|
|
272
|
+
def identity() -> Transformation:
|
|
273
|
+
...
|
|
274
|
+
@staticmethod
|
|
275
|
+
def rotation(rotation_angle: typing.Any) -> Transformation:
|
|
276
|
+
...
|
|
277
|
+
@staticmethod
|
|
278
|
+
def rotation_around(point: object.Point, rotation_angle: typing.Any) -> Transformation:
|
|
279
|
+
...
|
|
280
|
+
@staticmethod
|
|
281
|
+
def string_from_type(type: typing.Any) -> ostk.core.type.String:
|
|
282
|
+
...
|
|
283
|
+
@staticmethod
|
|
284
|
+
def translation(transaction_vector: numpy.ndarray[numpy.float64[2, 1]]) -> Transformation:
|
|
285
|
+
...
|
|
286
|
+
@staticmethod
|
|
287
|
+
def type_of_matrix(matrix: numpy.ndarray[numpy.float64[3, 3]]) -> ...:
|
|
288
|
+
...
|
|
289
|
+
@staticmethod
|
|
290
|
+
def undefined() -> Transformation:
|
|
291
|
+
...
|
|
292
|
+
def __eq__(self, arg0: Transformation) -> bool:
|
|
293
|
+
...
|
|
294
|
+
def __init__(self, matrix: numpy.ndarray[numpy.float64[3, 3]]) -> None:
|
|
295
|
+
...
|
|
296
|
+
def __ne__(self, arg0: Transformation) -> bool:
|
|
297
|
+
...
|
|
298
|
+
def __repr__(self) -> str:
|
|
299
|
+
...
|
|
300
|
+
def __str__(self) -> str:
|
|
301
|
+
...
|
|
302
|
+
@typing.overload
|
|
303
|
+
def apply_to(self, point: object.Point) -> object.Point:
|
|
304
|
+
...
|
|
305
|
+
@typing.overload
|
|
306
|
+
def apply_to(self, vector: numpy.ndarray[numpy.float64[2, 1]]) -> numpy.ndarray[numpy.float64[2, 1]]:
|
|
307
|
+
...
|
|
308
|
+
def get_inverse(self) -> Transformation:
|
|
309
|
+
...
|
|
310
|
+
def get_matrix(self) -> numpy.ndarray[numpy.float64[3, 3]]:
|
|
311
|
+
...
|
|
312
|
+
def get_type(self) -> ...:
|
|
313
|
+
...
|
|
314
|
+
def is_defined(self) -> bool:
|
|
315
|
+
...
|
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
import numpy
|
|
3
|
+
import ostk.core.type
|
|
4
|
+
import ostk.mathematics.geometry.d2
|
|
5
|
+
import typing
|
|
6
|
+
__all__ = ['Composite', 'Line', 'LineString', 'MultiPolygon', 'Point', 'PointSet', 'Polygon', 'Segment', 'set_point_2_array', 'set_point_array']
|
|
7
|
+
class Composite(ostk.mathematics.geometry.d2.Object):
|
|
8
|
+
__hash__: typing.ClassVar[None] = None
|
|
9
|
+
@staticmethod
|
|
10
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
11
|
+
...
|
|
12
|
+
@staticmethod
|
|
13
|
+
def empty() -> Composite:
|
|
14
|
+
...
|
|
15
|
+
@staticmethod
|
|
16
|
+
def undefined() -> Composite:
|
|
17
|
+
...
|
|
18
|
+
def __add__(self, arg0: Composite) -> Composite:
|
|
19
|
+
...
|
|
20
|
+
def __eq__(self, arg0: Composite) -> bool:
|
|
21
|
+
...
|
|
22
|
+
def __iadd__(self, arg0: Composite) -> Composite:
|
|
23
|
+
...
|
|
24
|
+
def __init__(self, object: ostk.mathematics.geometry.d2.Object) -> None:
|
|
25
|
+
...
|
|
26
|
+
def __ne__(self, arg0: Composite) -> bool:
|
|
27
|
+
...
|
|
28
|
+
def __repr__(self) -> str:
|
|
29
|
+
...
|
|
30
|
+
def __str__(self) -> str:
|
|
31
|
+
...
|
|
32
|
+
def access_object_at(self, index: int) -> ostk.mathematics.geometry.d2.Object:
|
|
33
|
+
...
|
|
34
|
+
@typing.overload
|
|
35
|
+
def any_contains(self, object: ostk.mathematics.geometry.d2.Object) -> bool:
|
|
36
|
+
...
|
|
37
|
+
@typing.overload
|
|
38
|
+
def any_contains(self, composite: Composite) -> bool:
|
|
39
|
+
...
|
|
40
|
+
def apply_transformation(self, transformation: typing.Any) -> None:
|
|
41
|
+
...
|
|
42
|
+
def as_composite(self) -> Composite:
|
|
43
|
+
...
|
|
44
|
+
def as_line(self) -> Line:
|
|
45
|
+
...
|
|
46
|
+
def as_line_string(self) -> LineString:
|
|
47
|
+
...
|
|
48
|
+
def as_point(self) -> Point:
|
|
49
|
+
...
|
|
50
|
+
def as_point_set(self) -> PointSet:
|
|
51
|
+
...
|
|
52
|
+
def as_polygon(self) -> Polygon:
|
|
53
|
+
...
|
|
54
|
+
def as_segment(self) -> Segment:
|
|
55
|
+
...
|
|
56
|
+
@typing.overload
|
|
57
|
+
def contains(self, object: ostk.mathematics.geometry.d2.Object) -> bool:
|
|
58
|
+
...
|
|
59
|
+
@typing.overload
|
|
60
|
+
def contains(self, composite: Composite) -> bool:
|
|
61
|
+
...
|
|
62
|
+
def get_object_count(self) -> int:
|
|
63
|
+
...
|
|
64
|
+
@typing.overload
|
|
65
|
+
def intersects(self, object: ostk.mathematics.geometry.d2.Object) -> bool:
|
|
66
|
+
...
|
|
67
|
+
@typing.overload
|
|
68
|
+
def intersects(self, composite: Composite) -> bool:
|
|
69
|
+
...
|
|
70
|
+
def is_composite(self) -> bool:
|
|
71
|
+
...
|
|
72
|
+
def is_defined(self) -> bool:
|
|
73
|
+
...
|
|
74
|
+
def is_empty(self) -> bool:
|
|
75
|
+
...
|
|
76
|
+
def is_line(self) -> bool:
|
|
77
|
+
...
|
|
78
|
+
def is_line_string(self) -> bool:
|
|
79
|
+
...
|
|
80
|
+
def is_point(self) -> bool:
|
|
81
|
+
...
|
|
82
|
+
def is_point_set(self) -> bool:
|
|
83
|
+
...
|
|
84
|
+
def is_polygon(self) -> bool:
|
|
85
|
+
...
|
|
86
|
+
def is_segment(self) -> bool:
|
|
87
|
+
...
|
|
88
|
+
class Line(ostk.mathematics.geometry.d2.Object):
|
|
89
|
+
__hash__: typing.ClassVar[None] = None
|
|
90
|
+
@staticmethod
|
|
91
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
92
|
+
...
|
|
93
|
+
@staticmethod
|
|
94
|
+
def points(first_point: Point, second_point: Point) -> Line:
|
|
95
|
+
...
|
|
96
|
+
@staticmethod
|
|
97
|
+
def undefined() -> Line:
|
|
98
|
+
...
|
|
99
|
+
def __eq__(self, arg0: Line) -> bool:
|
|
100
|
+
...
|
|
101
|
+
def __init__(self, point: Point, direction: numpy.ndarray[numpy.float64[2, 1]]) -> None:
|
|
102
|
+
...
|
|
103
|
+
def __ne__(self, arg0: Line) -> bool:
|
|
104
|
+
...
|
|
105
|
+
def __repr__(self) -> str:
|
|
106
|
+
...
|
|
107
|
+
def __str__(self) -> str:
|
|
108
|
+
...
|
|
109
|
+
def apply_transformation(self, transformation: typing.Any) -> None:
|
|
110
|
+
...
|
|
111
|
+
@typing.overload
|
|
112
|
+
def contains(self, point: Point) -> bool:
|
|
113
|
+
...
|
|
114
|
+
@typing.overload
|
|
115
|
+
def contains(self, point_set: PointSet) -> bool:
|
|
116
|
+
...
|
|
117
|
+
def distance_to(self, point: Point) -> ostk.core.type.Real:
|
|
118
|
+
...
|
|
119
|
+
def get_direction(self) -> numpy.ndarray[numpy.float64[2, 1]]:
|
|
120
|
+
...
|
|
121
|
+
def get_origin(self) -> Point:
|
|
122
|
+
...
|
|
123
|
+
def intersects(self, point: Point) -> bool:
|
|
124
|
+
...
|
|
125
|
+
def is_defined(self) -> bool:
|
|
126
|
+
...
|
|
127
|
+
class LineString(ostk.mathematics.geometry.d2.Object):
|
|
128
|
+
__hash__: typing.ClassVar[None] = None
|
|
129
|
+
@staticmethod
|
|
130
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
131
|
+
...
|
|
132
|
+
@staticmethod
|
|
133
|
+
def empty() -> LineString:
|
|
134
|
+
...
|
|
135
|
+
def __eq__(self, arg0: LineString) -> bool:
|
|
136
|
+
...
|
|
137
|
+
def __getitem__(self, index: int) -> Point:
|
|
138
|
+
...
|
|
139
|
+
def __init__(self, points: list[Point]) -> None:
|
|
140
|
+
...
|
|
141
|
+
def __iter__(self) -> typing.Iterator[Point]:
|
|
142
|
+
...
|
|
143
|
+
def __len__(self) -> int:
|
|
144
|
+
...
|
|
145
|
+
def __ne__(self, arg0: LineString) -> bool:
|
|
146
|
+
...
|
|
147
|
+
def __repr__(self) -> str:
|
|
148
|
+
...
|
|
149
|
+
def __str__(self) -> str:
|
|
150
|
+
...
|
|
151
|
+
def apply_transformation(self, transformation: typing.Any) -> None:
|
|
152
|
+
...
|
|
153
|
+
def get_point_closest_to(self, point: Point) -> Point:
|
|
154
|
+
...
|
|
155
|
+
def get_point_count(self) -> int:
|
|
156
|
+
...
|
|
157
|
+
def is_defined(self) -> bool:
|
|
158
|
+
...
|
|
159
|
+
def is_empty(self) -> bool:
|
|
160
|
+
...
|
|
161
|
+
def is_near(self, line_string: LineString, tolerance: ostk.core.type.Real) -> bool:
|
|
162
|
+
...
|
|
163
|
+
def to_string(self, format: ostk.mathematics.geometry.d2.Object.Format = ..., precision: ostk.core.type.Integer = ...) -> ostk.core.type.String:
|
|
164
|
+
...
|
|
165
|
+
class MultiPolygon(ostk.mathematics.geometry.d2.Object):
|
|
166
|
+
__hash__: typing.ClassVar[None] = None
|
|
167
|
+
@staticmethod
|
|
168
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
169
|
+
...
|
|
170
|
+
@staticmethod
|
|
171
|
+
def polygon(polygon: Polygon) -> MultiPolygon:
|
|
172
|
+
...
|
|
173
|
+
@staticmethod
|
|
174
|
+
def undefined() -> MultiPolygon:
|
|
175
|
+
...
|
|
176
|
+
def __eq__(self, arg0: MultiPolygon) -> bool:
|
|
177
|
+
...
|
|
178
|
+
def __init__(self, polygons: list[Polygon]) -> None:
|
|
179
|
+
...
|
|
180
|
+
def __ne__(self, arg0: MultiPolygon) -> bool:
|
|
181
|
+
...
|
|
182
|
+
def __repr__(self) -> str:
|
|
183
|
+
...
|
|
184
|
+
def __str__(self) -> str:
|
|
185
|
+
...
|
|
186
|
+
def apply_transformation(self, transformation: typing.Any) -> None:
|
|
187
|
+
...
|
|
188
|
+
@typing.overload
|
|
189
|
+
def contains(self, point: Point) -> bool:
|
|
190
|
+
...
|
|
191
|
+
@typing.overload
|
|
192
|
+
def contains(self, point_set: PointSet) -> bool:
|
|
193
|
+
...
|
|
194
|
+
def get_convex_hull(self) -> Polygon:
|
|
195
|
+
...
|
|
196
|
+
def get_polygon_count(self) -> int:
|
|
197
|
+
...
|
|
198
|
+
def get_polygons(self) -> list[Polygon]:
|
|
199
|
+
...
|
|
200
|
+
def is_defined(self) -> bool:
|
|
201
|
+
...
|
|
202
|
+
def to_string(self, format: ostk.mathematics.geometry.d2.Object.Format = ..., precision: ostk.core.type.Integer = ...) -> ostk.core.type.String:
|
|
203
|
+
...
|
|
204
|
+
def union_with(self, multipolygon: MultiPolygon) -> MultiPolygon:
|
|
205
|
+
...
|
|
206
|
+
class Point(ostk.mathematics.geometry.d2.Object):
|
|
207
|
+
__hash__: typing.ClassVar[None] = None
|
|
208
|
+
@staticmethod
|
|
209
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
210
|
+
...
|
|
211
|
+
@staticmethod
|
|
212
|
+
def origin() -> Point:
|
|
213
|
+
...
|
|
214
|
+
@staticmethod
|
|
215
|
+
def undefined() -> Point:
|
|
216
|
+
...
|
|
217
|
+
@staticmethod
|
|
218
|
+
def vector(vector: numpy.ndarray[numpy.float64[2, 1]]) -> Point:
|
|
219
|
+
...
|
|
220
|
+
def __add__(self, arg0: numpy.ndarray[numpy.float64[2, 1]]) -> Point:
|
|
221
|
+
...
|
|
222
|
+
def __eq__(self, arg0: Point) -> bool:
|
|
223
|
+
...
|
|
224
|
+
def __init__(self, x: ostk.core.type.Real, y: ostk.core.type.Real) -> None:
|
|
225
|
+
...
|
|
226
|
+
def __ne__(self, arg0: Point) -> bool:
|
|
227
|
+
...
|
|
228
|
+
def __repr__(self) -> str:
|
|
229
|
+
...
|
|
230
|
+
def __str__(self) -> str:
|
|
231
|
+
...
|
|
232
|
+
@typing.overload
|
|
233
|
+
def __sub__(self, arg0: Point) -> numpy.ndarray[numpy.float64[2, 1]]:
|
|
234
|
+
...
|
|
235
|
+
@typing.overload
|
|
236
|
+
def __sub__(self, arg0: numpy.ndarray[numpy.float64[2, 1]]) -> Point:
|
|
237
|
+
...
|
|
238
|
+
def apply_transformation(self, transformation: typing.Any) -> None:
|
|
239
|
+
...
|
|
240
|
+
def as_vector(self) -> numpy.ndarray[numpy.float64[2, 1]]:
|
|
241
|
+
...
|
|
242
|
+
def distance_to(self, point: Point) -> ostk.core.type.Real:
|
|
243
|
+
...
|
|
244
|
+
def is_defined(self) -> bool:
|
|
245
|
+
...
|
|
246
|
+
def is_near(self, point: Point, tolerance: ostk.core.type.Real) -> bool:
|
|
247
|
+
...
|
|
248
|
+
def to_string(self, format: ostk.mathematics.geometry.d2.Object.Format = ..., precision: ostk.core.type.Integer = ...) -> ostk.core.type.String:
|
|
249
|
+
...
|
|
250
|
+
def x(self) -> ostk.core.type.Real:
|
|
251
|
+
...
|
|
252
|
+
def y(self) -> ostk.core.type.Real:
|
|
253
|
+
...
|
|
254
|
+
class PointSet(ostk.mathematics.geometry.d2.Object):
|
|
255
|
+
__hash__: typing.ClassVar[None] = None
|
|
256
|
+
@staticmethod
|
|
257
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
258
|
+
...
|
|
259
|
+
@staticmethod
|
|
260
|
+
def empty() -> PointSet:
|
|
261
|
+
...
|
|
262
|
+
def __eq__(self, arg0: PointSet) -> bool:
|
|
263
|
+
...
|
|
264
|
+
def __getitem__(self, arg0: int) -> Point:
|
|
265
|
+
...
|
|
266
|
+
def __init__(self, points: list[Point]) -> None:
|
|
267
|
+
...
|
|
268
|
+
def __iter__(self) -> typing.Iterator[Point]:
|
|
269
|
+
...
|
|
270
|
+
def __len__(self) -> int:
|
|
271
|
+
...
|
|
272
|
+
def __ne__(self, arg0: PointSet) -> bool:
|
|
273
|
+
...
|
|
274
|
+
def __repr__(self) -> str:
|
|
275
|
+
...
|
|
276
|
+
def __str__(self) -> str:
|
|
277
|
+
...
|
|
278
|
+
def apply_transformation(self, transformation: typing.Any) -> None:
|
|
279
|
+
...
|
|
280
|
+
def distance_to(self, point: Point) -> ostk.core.type.Real:
|
|
281
|
+
...
|
|
282
|
+
def get_point_closest_to(self, point: Point) -> Point:
|
|
283
|
+
...
|
|
284
|
+
def get_size(self) -> int:
|
|
285
|
+
...
|
|
286
|
+
def is_defined(self) -> bool:
|
|
287
|
+
...
|
|
288
|
+
def is_empty(self) -> bool:
|
|
289
|
+
...
|
|
290
|
+
def is_near(self, point_set: PointSet, tolerance: ostk.core.type.Real) -> bool:
|
|
291
|
+
...
|
|
292
|
+
def to_string(self, format: ostk.mathematics.geometry.d2.Object.Format = ..., precision: ostk.core.type.Integer = ...) -> ostk.core.type.String:
|
|
293
|
+
...
|
|
294
|
+
class Polygon(ostk.mathematics.geometry.d2.Object):
|
|
295
|
+
__hash__: typing.ClassVar[None] = None
|
|
296
|
+
@staticmethod
|
|
297
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
298
|
+
...
|
|
299
|
+
@staticmethod
|
|
300
|
+
def undefined() -> Polygon:
|
|
301
|
+
...
|
|
302
|
+
def __eq__(self, arg0: Polygon) -> bool:
|
|
303
|
+
...
|
|
304
|
+
@typing.overload
|
|
305
|
+
def __init__(self, outer_ring: list[Point], inner_rings: list[list[Point]]) -> None:
|
|
306
|
+
...
|
|
307
|
+
@typing.overload
|
|
308
|
+
def __init__(self, outer_ring: list[Point]) -> None:
|
|
309
|
+
...
|
|
310
|
+
def __ne__(self, arg0: Polygon) -> bool:
|
|
311
|
+
...
|
|
312
|
+
def __repr__(self) -> str:
|
|
313
|
+
...
|
|
314
|
+
def __str__(self) -> str:
|
|
315
|
+
...
|
|
316
|
+
def apply_transformation(self, transformation: typing.Any) -> None:
|
|
317
|
+
...
|
|
318
|
+
@typing.overload
|
|
319
|
+
def contains(self, point: Point) -> bool:
|
|
320
|
+
...
|
|
321
|
+
@typing.overload
|
|
322
|
+
def contains(self, point_set: PointSet) -> bool:
|
|
323
|
+
...
|
|
324
|
+
def difference_with(self, polygon: Polygon) -> ...:
|
|
325
|
+
...
|
|
326
|
+
def get_convex_hull(self) -> Polygon:
|
|
327
|
+
...
|
|
328
|
+
def get_edge_at(self, index: int) -> Segment:
|
|
329
|
+
...
|
|
330
|
+
def get_edge_count(self) -> int:
|
|
331
|
+
...
|
|
332
|
+
def get_edges(self) -> list[Segment]:
|
|
333
|
+
...
|
|
334
|
+
def get_inner_ring_at(self, index: int) -> LineString:
|
|
335
|
+
...
|
|
336
|
+
def get_inner_ring_count(self) -> int:
|
|
337
|
+
...
|
|
338
|
+
def get_outer_ring(self) -> LineString:
|
|
339
|
+
...
|
|
340
|
+
def get_vertex_at(self, index: int) -> Point:
|
|
341
|
+
...
|
|
342
|
+
def get_vertex_count(self) -> int:
|
|
343
|
+
...
|
|
344
|
+
def get_vertices(self) -> list[Point]:
|
|
345
|
+
...
|
|
346
|
+
def intersection_with(self, polygon: Polygon) -> ...:
|
|
347
|
+
...
|
|
348
|
+
def intersects(self, polygon: Polygon) -> bool:
|
|
349
|
+
...
|
|
350
|
+
def is_defined(self) -> bool:
|
|
351
|
+
...
|
|
352
|
+
def is_near(self, polygon: Polygon, tolerance: ostk.core.type.Real) -> bool:
|
|
353
|
+
...
|
|
354
|
+
def to_string(self, format: ostk.mathematics.geometry.d2.Object.Format = ..., precision: ostk.core.type.Integer = ...) -> ostk.core.type.String:
|
|
355
|
+
...
|
|
356
|
+
def union_with(self, polygon: Polygon) -> ...:
|
|
357
|
+
...
|
|
358
|
+
class Segment(ostk.mathematics.geometry.d2.Object):
|
|
359
|
+
__hash__: typing.ClassVar[None] = None
|
|
360
|
+
@staticmethod
|
|
361
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
362
|
+
...
|
|
363
|
+
@staticmethod
|
|
364
|
+
def undefined() -> Segment:
|
|
365
|
+
...
|
|
366
|
+
def __eq__(self, arg0: Segment) -> bool:
|
|
367
|
+
...
|
|
368
|
+
def __init__(self, start_point: Point, end_point: Point) -> None:
|
|
369
|
+
...
|
|
370
|
+
def __ne__(self, arg0: Segment) -> bool:
|
|
371
|
+
...
|
|
372
|
+
def __repr__(self) -> str:
|
|
373
|
+
...
|
|
374
|
+
def __str__(self) -> str:
|
|
375
|
+
...
|
|
376
|
+
def apply_transformation(self, transformation: typing.Any) -> None:
|
|
377
|
+
...
|
|
378
|
+
@typing.overload
|
|
379
|
+
def distance_to(self, point: Point) -> ostk.core.type.Real:
|
|
380
|
+
...
|
|
381
|
+
@typing.overload
|
|
382
|
+
def distance_to(self, point_set: PointSet) -> ostk.core.type.Real:
|
|
383
|
+
...
|
|
384
|
+
def get_center(self) -> Point:
|
|
385
|
+
...
|
|
386
|
+
def get_direction(self) -> numpy.ndarray[numpy.float64[2, 1]]:
|
|
387
|
+
...
|
|
388
|
+
def get_first_point(self) -> Point:
|
|
389
|
+
...
|
|
390
|
+
def get_length(self) -> ostk.core.type.Real:
|
|
391
|
+
...
|
|
392
|
+
def get_second_point(self) -> Point:
|
|
393
|
+
...
|
|
394
|
+
def is_defined(self) -> bool:
|
|
395
|
+
...
|
|
396
|
+
def is_degenerate(self) -> bool:
|
|
397
|
+
...
|
|
398
|
+
def to_line(self) -> Line:
|
|
399
|
+
...
|
|
400
|
+
def to_string(self, format: ostk.mathematics.geometry.d2.Object.Format = ..., precision: ostk.core.type.Integer = ...) -> ostk.core.type.String:
|
|
401
|
+
...
|
|
402
|
+
def set_point_2_array(arg0: list[list[Point]]) -> None:
|
|
403
|
+
...
|
|
404
|
+
def set_point_array(arg0: list[Point]) -> None:
|
|
405
|
+
...
|