fake-bpy-module 20240210__py3-none-any.whl → 20240326__py3-none-any.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.
- addon_utils/__init__.pyi +54 -11
- animsys_refactor/__init__.pyi +36 -7
- aud/__init__.pyi +307 -321
- bgl/__init__.pyi +2926 -865
- bl_app_override/__init__.pyi +14 -4
- bl_app_override/helpers/__init__.pyi +24 -3
- bl_app_template_utils/__init__.pyi +19 -5
- bl_console_utils/__init__.pyi +0 -1
- bl_console_utils/autocomplete/__init__.pyi +2 -3
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +24 -6
- bl_console_utils/autocomplete/complete_import/__init__.pyi +14 -4
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +24 -6
- bl_console_utils/autocomplete/intellisense/__init__.pyi +9 -3
- bl_i18n_utils/__init__.pyi +2 -3
- bl_i18n_utils/bl_extract_messages/__init__.pyi +74 -16
- bl_i18n_utils/merge_po/__init__.pyi +4 -2
- bl_i18n_utils/settings/__init__.pyi +53 -7
- bl_i18n_utils/utils/__init__.pyi +332 -45
- bl_i18n_utils/utils_cli/__init__.pyi +29 -7
- bl_i18n_utils/utils_languages_menu/__init__.pyi +4 -2
- bl_i18n_utils/utils_rtl/__init__.pyi +9 -3
- bl_keymap_utils/__init__.pyi +2 -3
- bl_keymap_utils/io/__init__.pyi +44 -10
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +4 -2
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +4 -2
- bl_keymap_utils/platform_helpers/__init__.pyi +9 -3
- bl_keymap_utils/versioning/__init__.pyi +4 -2
- bl_math/__init__.pyi +21 -22
- bl_operators/__init__.pyi +30 -24
- bl_operators/add_mesh_torus/__init__.pyi +171 -38
- bl_operators/anim/__init__.pyi +1065 -227
- bl_operators/assets/__init__.pyi +427 -93
- bl_operators/bmesh/__init__.pyi +0 -1
- bl_operators/bmesh/find_adjacent/__init__.pyi +44 -10
- bl_operators/clip/__init__.pyi +1342 -288
- bl_operators/console/__init__.pyi +647 -141
- bl_operators/constraint/__init__.pyi +524 -113
- bl_operators/file/__init__.pyi +396 -85
- bl_operators/freestyle/__init__.pyi +532 -114
- bl_operators/geometry_nodes/__init__.pyi +2412 -597
- bl_operators/image/__init__.pyi +380 -83
- bl_operators/mesh/__init__.pyi +401 -86
- bl_operators/node/__init__.pyi +1756 -385
- bl_operators/object/__init__.pyi +2022 -553
- bl_operators/object_align/__init__.pyi +145 -32
- bl_operators/object_quick_effects/__init__.pyi +555 -125
- bl_operators/object_randomize_transform/__init__.pyi +136 -33
- bl_operators/presets/__init__.pyi +3516 -709
- bl_operators/rigidbody/__init__.pyi +401 -86
- bl_operators/screen_play_rendered_anim/__init__.pyi +129 -30
- bl_operators/sequencer/__init__.pyi +731 -150
- bl_operators/spreadsheet/__init__.pyi +145 -31
- bl_operators/userpref/__init__.pyi +3416 -825
- bl_operators/uvcalc_follow_active/__init__.pyi +149 -33
- bl_operators/uvcalc_lightmap/__init__.pyi +187 -35
- bl_operators/uvcalc_transform/__init__.pyi +344 -74
- bl_operators/vertexpaint_dirt/__init__.pyi +140 -31
- bl_operators/view3d/__init__.pyi +697 -147
- bl_operators/wm/__init__.pyi +6287 -1534
- bl_previews_utils/__init__.pyi +0 -1
- bl_previews_utils/bl_previews_render/__init__.pyi +34 -8
- bl_rna_utils/__init__.pyi +0 -1
- bl_rna_utils/data_path/__init__.pyi +12 -3
- bl_text_utils/__init__.pyi +0 -1
- bl_text_utils/external_editor/__init__.pyi +4 -2
- bl_ui/__init__.pyi +567 -170
- bl_ui/anim/__init__.pyi +164 -34
- bl_ui/asset_shelf/__init__.pyi +146 -32
- bl_ui/generic_ui_list/__init__.pyi +471 -100
- bl_ui/node_add_menu/__init__.pyi +196 -41
- bl_ui/node_add_menu_compositor/__init__.pyi +3017 -622
- bl_ui/node_add_menu_geometry/__init__.pyi +8075 -1592
- bl_ui/node_add_menu_shader/__init__.pyi +1709 -349
- bl_ui/node_add_menu_texture/__init__.pyi +1502 -306
- bl_ui/properties_animviz/__init__.pyi +32 -3
- bl_ui/properties_collection/__init__.pyi +787 -180
- bl_ui/properties_constraint/__init__.pyi +28635 -5524
- bl_ui/properties_data_armature/__init__.pyi +1905 -449
- bl_ui/properties_data_bone/__init__.pyi +1560 -337
- bl_ui/properties_data_camera/__init__.pyi +2269 -495
- bl_ui/properties_data_curve/__init__.pyi +2362 -535
- bl_ui/properties_data_curves/__init__.pyi +951 -204
- bl_ui/properties_data_empty/__init__.pyi +317 -70
- bl_ui/properties_data_gpencil/__init__.pyi +2924 -735
- bl_ui/properties_data_grease_pencil/__init__.pyi +1631 -189
- bl_ui/properties_data_lattice/__init__.pyi +472 -105
- bl_ui/properties_data_light/__init__.pyi +1570 -338
- bl_ui/properties_data_lightprobe/__init__.pyi +938 -209
- bl_ui/properties_data_mesh/__init__.pyi +3205 -768
- bl_ui/properties_data_metaball/__init__.pyi +774 -171
- bl_ui/properties_data_modifier/__init__.pyi +1554 -329
- bl_ui/properties_data_pointcloud/__init__.pyi +821 -195
- bl_ui/properties_data_shaderfx/__init__.pyi +154 -35
- bl_ui/properties_data_speaker/__init__.pyi +782 -169
- bl_ui/properties_data_volume/__init__.pyi +1243 -282
- bl_ui/properties_freestyle/__init__.pyi +4071 -1031
- bl_ui/properties_grease_pencil_common/__init__.pyi +2399 -484
- bl_ui/properties_mask_common/__init__.pyi +1256 -250
- bl_ui/properties_material/__init__.pyi +2351 -543
- bl_ui/properties_material_gpencil/__init__.pyi +1590 -366
- bl_ui/properties_object/__init__.pyi +2179 -513
- bl_ui/properties_output/__init__.pyi +2956 -706
- bl_ui/properties_paint_common/__init__.pyi +947 -141
- bl_ui/properties_particle/__init__.pyi +8322 -1971
- bl_ui/properties_physics_cloth/__init__.pyi +2254 -509
- bl_ui/properties_physics_common/__init__.pyi +200 -45
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +4454 -966
- bl_ui/properties_physics_field/__init__.pyi +1695 -365
- bl_ui/properties_physics_fluid/__init__.pyi +6127 -1281
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +157 -33
- bl_ui/properties_physics_rigidbody/__init__.pyi +1254 -279
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +2053 -484
- bl_ui/properties_physics_softbody/__init__.pyi +2394 -543
- bl_ui/properties_render/__init__.pyi +8312 -1934
- bl_ui/properties_scene/__init__.pyi +2211 -540
- bl_ui/properties_texture/__init__.pyi +4185 -1014
- bl_ui/properties_view_layer/__init__.pyi +2803 -665
- bl_ui/properties_workspace/__init__.pyi +626 -149
- bl_ui/properties_world/__init__.pyi +1092 -235
- bl_ui/space_clip/__init__.pyi +11475 -2806
- bl_ui/space_console/__init__.pyi +967 -203
- bl_ui/space_dopesheet/__init__.pyi +4260 -967
- bl_ui/space_filebrowser/__init__.pyi +4852 -1188
- bl_ui/space_graph/__init__.pyi +3251 -703
- bl_ui/space_image/__init__.pyi +12218 -2968
- bl_ui/space_info/__init__.pyi +964 -201
- bl_ui/space_nla/__init__.pyi +2756 -585
- bl_ui/space_node/__init__.pyi +5661 -1266
- bl_ui/space_outliner/__init__.pyi +2294 -479
- bl_ui/space_properties/__init__.pyi +417 -93
- bl_ui/space_sequencer/__init__.pyi +12436 -3010
- bl_ui/space_spreadsheet/__init__.pyi +184 -37
- bl_ui/space_statusbar/__init__.pyi +135 -31
- bl_ui/space_text/__init__.pyi +2556 -543
- bl_ui/space_time/__init__.pyi +1151 -244
- bl_ui/space_toolsystem_common/__init__.pyi +368 -67
- bl_ui/space_toolsystem_toolbar/__init__.pyi +1378 -229
- bl_ui/space_topbar/__init__.pyi +4214 -888
- bl_ui/space_userpref/__init__.pyi +13920 -3468
- bl_ui/space_view3d/__init__.pyi +42751 -9613
- bl_ui/space_view3d_toolbar/__init__.pyi +16379 -3860
- bl_ui/utils/__init__.pyi +42 -5
- bl_ui_utils/__init__.pyi +0 -1
- bl_ui_utils/bug_report_url/__init__.pyi +4 -2
- bl_ui_utils/layout/__init__.pyi +4 -2
- blend_render_info/__init__.pyi +13 -4
- blf/__init__.pyi +15 -18
- bmesh/__init__.pyi +18 -18
- bmesh/geometry/__init__.pyi +5 -6
- bmesh/ops/__init__.pyi +1337 -1158
- bmesh/types/__init__.pyi +464 -374
- bmesh/utils/__init__.pyi +64 -70
- bpy/__init__.pyi +6 -7
- bpy/app/__init__.pyi +36 -38
- bpy/app/handlers/__init__.pyi +37 -38
- bpy/app/icons/__init__.pyi +8 -11
- bpy/app/timers/__init__.pyi +18 -17
- bpy/app/translations/__init__.pyi +32 -30
- bpy/msgbus/__init__.pyi +25 -20
- bpy/ops/__init__.pyi +63 -64
- bpy/ops/action/__init__.pyi +408 -436
- bpy/ops/anim/__init__.pyi +459 -577
- bpy/ops/armature/__init__.pyi +396 -498
- bpy/ops/asset/__init__.pyi +187 -213
- bpy/ops/boid/__init__.pyi +50 -68
- bpy/ops/brush/__init__.pyi +72 -97
- bpy/ops/buttons/__init__.pyi +202 -193
- bpy/ops/cachefile/__init__.pyi +198 -188
- bpy/ops/camera/__init__.pyi +24 -31
- bpy/ops/clip/__init__.pyi +1021 -1082
- bpy/ops/cloth/__init__.pyi +11 -15
- bpy/ops/collection/__init__.pyi +36 -51
- bpy/ops/console/__init__.pyi +155 -209
- bpy/ops/constraint/__init__.pyi +286 -254
- bpy/ops/curve/__init__.pyi +597 -659
- bpy/ops/curves/__init__.pyi +191 -225
- bpy/ops/cycles/__init__.pyi +21 -30
- bpy/ops/dpaint/__init__.pyi +34 -47
- bpy/ops/ed/__init__.pyi +160 -176
- bpy/ops/export_anim/__init__.pyi +51 -34
- bpy/ops/export_mesh/__init__.pyi +47 -45
- bpy/ops/export_scene/__init__.pyi +659 -504
- bpy/ops/file/__init__.pyi +469 -474
- bpy/ops/fluid/__init__.pyi +89 -119
- bpy/ops/font/__init__.pyi +325 -361
- bpy/ops/geometry/__init__.pyi +86 -114
- bpy/ops/gizmogroup/__init__.pyi +22 -28
- bpy/ops/gpencil/__init__.pyi +1900 -1976
- bpy/ops/graph/__init__.pyi +875 -894
- bpy/ops/grease_pencil/__init__.pyi +572 -508
- bpy/ops/image/__init__.pyi +805 -855
- bpy/ops/import_anim/__init__.pyi +66 -46
- bpy/ops/import_curve/__init__.pyi +7 -11
- bpy/ops/import_mesh/__init__.pyi +19 -25
- bpy/ops/import_scene/__init__.pyi +164 -147
- bpy/ops/info/__init__.pyi +88 -85
- bpy/ops/lattice/__init__.pyi +86 -90
- bpy/ops/marker/__init__.pyi +135 -146
- bpy/ops/mask/__init__.pyi +372 -436
- bpy/ops/material/__init__.pyi +18 -25
- bpy/ops/mball/__init__.pyi +93 -99
- bpy/ops/mesh/__init__.pyi +2525 -2664
- bpy/ops/nla/__init__.pyi +398 -455
- bpy/ops/node/__init__.pyi +1015 -1207
- bpy/ops/object/__init__.pyi +3423 -3390
- bpy/ops/outliner/__init__.pyi +667 -685
- bpy/ops/paint/__init__.pyi +719 -672
- bpy/ops/paintcurve/__init__.pyi +64 -85
- bpy/ops/palette/__init__.pyi +48 -67
- bpy/ops/particle/__init__.pyi +323 -367
- bpy/ops/pose/__init__.pyi +569 -474
- bpy/ops/poselib/__init__.pyi +77 -100
- bpy/ops/preferences/__init__.pyi +460 -512
- bpy/ops/ptcache/__init__.pyi +46 -63
- bpy/ops/render/__init__.pyi +121 -155
- bpy/ops/rigidbody/__init__.pyi +148 -143
- bpy/ops/scene/__init__.pyi +336 -380
- bpy/ops/screen/__init__.pyi +454 -530
- bpy/ops/script/__init__.pyi +19 -28
- bpy/ops/sculpt/__init__.pyi +734 -587
- bpy/ops/sculpt_curves/__init__.pyi +51 -56
- bpy/ops/sequencer/__init__.pyi +1617 -1500
- bpy/ops/sound/__init__.pyi +392 -315
- bpy/ops/spreadsheet/__init__.pyi +31 -42
- bpy/ops/surface/__init__.pyi +198 -163
- bpy/ops/text/__init__.pyi +479 -545
- bpy/ops/text_editor/__init__.pyi +11 -15
- bpy/ops/texture/__init__.pyi +26 -36
- bpy/ops/transform/__init__.pyi +825 -941
- bpy/ops/ui/__init__.pyi +246 -295
- bpy/ops/uilist/__init__.pyi +34 -38
- bpy/ops/uv/__init__.pyi +912 -824
- bpy/ops/view2d/__init__.pyi +157 -197
- bpy/ops/view3d/__init__.pyi +777 -878
- bpy/ops/wm/__init__.pyi +4102 -3595
- bpy/ops/workspace/__init__.pyi +42 -58
- bpy/ops/world/__init__.pyi +6 -9
- bpy/path/__init__.pyi +166 -109
- bpy/props/__init__.pyi +478 -395
- bpy/types/__init__.pyi +87194 -81467
- bpy/utils/__init__.pyi +325 -169
- bpy/utils/previews/__init__.pyi +108 -21
- bpy/utils/units/__init__.pyi +37 -39
- bpy_extras/__init__.pyi +4 -9
- bpy_extras/anim_utils/__init__.pyi +25 -55
- bpy_extras/asset_utils/__init__.pyi +3 -13
- bpy_extras/id_map_utils/__init__.pyi +1 -4
- bpy_extras/image_utils/__init__.pyi +33 -23
- bpy_extras/io_utils/__init__.pyi +116 -66
- bpy_extras/keyconfig_utils/__init__.pyi +5 -3
- bpy_extras/mesh_utils/__init__.pyi +42 -34
- bpy_extras/node_utils/__init__.pyi +4 -4
- bpy_extras/object_utils/__init__.pyi +58 -43
- bpy_extras/view3d_utils/__init__.pyi +64 -63
- bpy_restrict_state/__init__.pyi +14 -2
- bpy_types/__init__.pyi +3873 -998
- console_python/__init__.pyi +41 -8
- console_shell/__init__.pyi +24 -6
- {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/METADATA +1 -1
- fake_bpy_module-20240326.dist-info/RECORD +343 -0
- {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/WHEEL +1 -1
- freestyle/__init__.pyi +4 -5
- freestyle/chainingiterators/__init__.pyi +229 -73
- freestyle/functions/__init__.pyi +624 -402
- freestyle/predicates/__init__.pyi +381 -169
- freestyle/shaders/__init__.pyi +424 -155
- freestyle/types/__init__.pyi +1572 -726
- freestyle/utils/ContextFunctions/__init__.pyi +54 -43
- freestyle/utils/__init__.pyi +67 -31
- gpu/__init__.pyi +3 -4
- gpu/capabilities/__init__.pyi +57 -37
- gpu/matrix/__init__.pyi +14 -17
- gpu/platform/__init__.pyi +5 -6
- gpu/select/__init__.pyi +2 -5
- gpu/shader/__init__.pyi +14 -12
- gpu/state/__init__.pyi +48 -62
- gpu/texture/__init__.pyi +7 -7
- gpu/types/__init__.pyi +670 -229
- gpu_extras/__init__.pyi +1 -2
- gpu_extras/batch/__init__.pyi +27 -6
- gpu_extras/presets/__init__.pyi +67 -27
- graphviz_export/__init__.pyi +9 -3
- idprop/__init__.pyi +0 -1
- idprop/types/__init__.pyi +42 -13
- imbuf/__init__.pyi +6 -10
- imbuf/types/__init__.pyi +8 -16
- keyingsets_builtins/__init__.pyi +3149 -702
- keyingsets_utils/__init__.pyi +69 -15
- mathutils/__init__.pyi +951 -876
- mathutils/bvhtree/__init__.pyi +47 -48
- mathutils/geometry/__init__.pyi +237 -242
- mathutils/interpolate/__init__.pyi +3 -6
- mathutils/kdtree/__init__.pyi +23 -26
- mathutils/noise/__init__.pyi +50 -51
- nodeitems_builtins/__init__.pyi +50 -11
- nodeitems_utils/__init__.pyi +58 -11
- rna_info/__init__.pyi +230 -27
- rna_keymap_ui/__init__.pyi +29 -7
- rna_prop_ui/__init__.pyi +69 -13
- rna_xml/__init__.pyi +29 -7
- sys_info/__init__.pyi +4 -2
- bpy_extras/bmesh_utils/__init__.pyi +0 -7
- bpy_extras/extensions/__init__.pyi +0 -5
- bpy_extras/extensions/junction_module/__init__.pyi +0 -13
- bpy_extras/node_shader_utils/__init__.pyi +0 -132
- bpy_extras/wm_utils/__init__.pyi +0 -5
- bpy_extras/wm_utils/progress_report/__init__.pyi +0 -30
- fake_bpy_module-20240210.dist-info/RECORD +0 -349
- {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/top_level.txt +0 -0
mathutils/__init__.pyi
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
3
2
|
from . import bvhtree
|
|
4
|
-
from . import noise
|
|
5
3
|
from . import geometry
|
|
6
4
|
from . import interpolate
|
|
7
5
|
from . import kdtree
|
|
6
|
+
from . import noise
|
|
8
7
|
|
|
9
8
|
GenericType = typing.TypeVar("GenericType")
|
|
10
9
|
|
|
11
10
|
class Color:
|
|
12
|
-
"""This object gives access to Colors in Blender.
|
|
11
|
+
"""This object gives access to Colors in Blender.Most colors returned by Blender APIs are in scene linear color space, as defined by the OpenColorIO configuration. The notable exception is user interface theming colors, which are in sRGB color space."""
|
|
13
12
|
|
|
14
13
|
b: float
|
|
15
14
|
""" Blue color channel.
|
|
@@ -29,10 +28,10 @@ class Color:
|
|
|
29
28
|
:type: float
|
|
30
29
|
"""
|
|
31
30
|
|
|
32
|
-
hsv: typing.Union[typing.Sequence[float],
|
|
31
|
+
hsv: typing.Union[typing.Sequence[float], Vector]
|
|
33
32
|
""" HSV Values in [0, 1].
|
|
34
33
|
|
|
35
|
-
:type: typing.Union[typing.Sequence[float],
|
|
34
|
+
:type: typing.Union[typing.Sequence[float], Vector]
|
|
36
35
|
"""
|
|
37
36
|
|
|
38
37
|
is_frozen: bool
|
|
@@ -54,7 +53,7 @@ class Color:
|
|
|
54
53
|
"""
|
|
55
54
|
|
|
56
55
|
owner: typing.Any
|
|
57
|
-
""" The item this is wrapping or None
|
|
56
|
+
""" The item this is wrapping or None (read-only)."""
|
|
58
57
|
|
|
59
58
|
r: float
|
|
60
59
|
""" Red color channel.
|
|
@@ -74,213 +73,226 @@ class Color:
|
|
|
74
73
|
:type: float
|
|
75
74
|
"""
|
|
76
75
|
|
|
77
|
-
|
|
78
|
-
def copy() -> "Color":
|
|
76
|
+
def copy(self) -> float:
|
|
79
77
|
"""Returns a copy of this color.
|
|
80
78
|
|
|
81
|
-
:rtype: 'Color'
|
|
82
79
|
:return: A copy of the color.
|
|
80
|
+
:rtype: Color
|
|
83
81
|
"""
|
|
84
82
|
...
|
|
85
83
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
"""Make this object immutable. After this the object can be hashed, used in dictionaries & sets.
|
|
84
|
+
def freeze(self) -> Color:
|
|
85
|
+
"""Make this object immutable.After this the object can be hashed, used in dictionaries & sets.
|
|
89
86
|
|
|
90
|
-
:rtype: 'Color'
|
|
91
87
|
:return: An instance of this object.
|
|
92
88
|
"""
|
|
93
89
|
...
|
|
94
90
|
|
|
95
|
-
|
|
96
|
-
def from_aces_to_scene_linear() -> "Color":
|
|
91
|
+
def from_aces_to_scene_linear(self):
|
|
97
92
|
"""Convert from ACES2065-1 linear to scene linear color space.
|
|
98
93
|
|
|
99
|
-
:rtype: 'Color'
|
|
100
94
|
:return: A color in scene linear color space.
|
|
95
|
+
:rtype: Color
|
|
101
96
|
"""
|
|
102
97
|
...
|
|
103
98
|
|
|
104
|
-
|
|
105
|
-
def from_rec709_linear_to_scene_linear() -> "Color":
|
|
99
|
+
def from_rec709_linear_to_scene_linear(self) -> Color:
|
|
106
100
|
"""Convert from Rec.709 linear color space to scene linear color space.
|
|
107
101
|
|
|
108
|
-
:rtype: 'Color'
|
|
109
102
|
:return: A color in scene linear color space.
|
|
103
|
+
:rtype: Color
|
|
110
104
|
"""
|
|
111
105
|
...
|
|
112
106
|
|
|
113
|
-
|
|
114
|
-
def from_scene_linear_to_aces() -> "Color":
|
|
107
|
+
def from_scene_linear_to_aces(self) -> Color:
|
|
115
108
|
"""Convert from scene linear to ACES2065-1 linear color space.
|
|
116
109
|
|
|
117
|
-
:rtype: 'Color'
|
|
118
110
|
:return: A color in ACES2065-1 linear color space.
|
|
111
|
+
:rtype: Color
|
|
119
112
|
"""
|
|
120
113
|
...
|
|
121
114
|
|
|
122
|
-
|
|
123
|
-
def from_scene_linear_to_rec709_linear() -> "Color":
|
|
115
|
+
def from_scene_linear_to_rec709_linear(self) -> Color:
|
|
124
116
|
"""Convert from scene linear to Rec.709 linear color space.
|
|
125
117
|
|
|
126
|
-
:rtype: 'Color'
|
|
127
118
|
:return: A color in Rec.709 linear color space.
|
|
119
|
+
:rtype: Color
|
|
128
120
|
"""
|
|
129
121
|
...
|
|
130
122
|
|
|
131
|
-
|
|
132
|
-
def from_scene_linear_to_srgb() -> "Color":
|
|
123
|
+
def from_scene_linear_to_srgb(self) -> Color:
|
|
133
124
|
"""Convert from scene linear to sRGB color space.
|
|
134
125
|
|
|
135
|
-
:rtype: 'Color'
|
|
136
126
|
:return: A color in sRGB color space.
|
|
127
|
+
:rtype: Color
|
|
137
128
|
"""
|
|
138
129
|
...
|
|
139
130
|
|
|
140
|
-
|
|
141
|
-
def from_scene_linear_to_xyz_d65() -> "Color":
|
|
131
|
+
def from_scene_linear_to_xyz_d65(self) -> Color:
|
|
142
132
|
"""Convert from scene linear to CIE XYZ (Illuminant D65) color space.
|
|
143
133
|
|
|
144
|
-
:rtype: 'Color'
|
|
145
134
|
:return: A color in XYZ color space.
|
|
135
|
+
:rtype: Color
|
|
146
136
|
"""
|
|
147
137
|
...
|
|
148
138
|
|
|
149
|
-
|
|
150
|
-
def from_srgb_to_scene_linear() -> "Color":
|
|
139
|
+
def from_srgb_to_scene_linear(self) -> Color:
|
|
151
140
|
"""Convert from sRGB to scene linear color space.
|
|
152
141
|
|
|
153
|
-
:rtype: 'Color'
|
|
154
142
|
:return: A color in scene linear color space.
|
|
143
|
+
:rtype: Color
|
|
155
144
|
"""
|
|
156
145
|
...
|
|
157
146
|
|
|
158
|
-
|
|
159
|
-
def from_xyz_d65_to_scene_linear() -> "Color":
|
|
147
|
+
def from_xyz_d65_to_scene_linear(self) -> Color:
|
|
160
148
|
"""Convert from CIE XYZ (Illuminant D65) to scene linear color space.
|
|
161
149
|
|
|
162
|
-
:rtype: 'Color'
|
|
163
150
|
:return: A color in scene linear color space.
|
|
151
|
+
:rtype: Color
|
|
164
152
|
"""
|
|
165
153
|
...
|
|
166
154
|
|
|
167
|
-
def __init__(self, rgb=(0.0, 0.0, 0.0))
|
|
155
|
+
def __init__(self, rgb=(0.0, 0.0, 0.0)):
|
|
168
156
|
"""
|
|
169
157
|
|
|
170
|
-
:
|
|
158
|
+
:param rgb:
|
|
171
159
|
"""
|
|
172
160
|
...
|
|
173
161
|
|
|
174
|
-
def __add__(
|
|
162
|
+
def __add__(
|
|
163
|
+
self, other: typing.Union[typing.Sequence[float], Color]
|
|
164
|
+
) -> typing.Union[typing.Sequence[float], Color]:
|
|
175
165
|
"""
|
|
176
166
|
|
|
177
167
|
:param other:
|
|
178
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
179
|
-
:
|
|
168
|
+
:type other: typing.Union[typing.Sequence[float], Color]
|
|
169
|
+
:return:
|
|
170
|
+
:rtype: Color
|
|
180
171
|
"""
|
|
181
172
|
...
|
|
182
173
|
|
|
183
|
-
def __sub__(
|
|
174
|
+
def __sub__(
|
|
175
|
+
self, other: typing.Union[typing.Sequence[float], Color]
|
|
176
|
+
) -> typing.Union[typing.Sequence[float], Color]:
|
|
184
177
|
"""
|
|
185
178
|
|
|
186
179
|
:param other:
|
|
187
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
188
|
-
:
|
|
180
|
+
:type other: typing.Union[typing.Sequence[float], Color]
|
|
181
|
+
:return:
|
|
182
|
+
:rtype: Color
|
|
189
183
|
"""
|
|
190
184
|
...
|
|
191
185
|
|
|
192
|
-
def __mul__(self, other: typing.Union[int, float]) ->
|
|
186
|
+
def __mul__(self, other: typing.Union[int, float]) -> typing.Union[int, float]:
|
|
193
187
|
"""
|
|
194
188
|
|
|
195
189
|
:param other:
|
|
196
190
|
:type other: typing.Union[int, float]
|
|
197
|
-
:
|
|
191
|
+
:return:
|
|
192
|
+
:rtype: Color
|
|
198
193
|
"""
|
|
199
194
|
...
|
|
200
195
|
|
|
201
|
-
def __truediv__(self, other: typing.Union[int, float]) ->
|
|
196
|
+
def __truediv__(self, other: typing.Union[int, float]) -> typing.Union[int, float]:
|
|
202
197
|
"""
|
|
203
198
|
|
|
204
199
|
:param other:
|
|
205
200
|
:type other: typing.Union[int, float]
|
|
206
|
-
:
|
|
201
|
+
:return:
|
|
202
|
+
:rtype: Color
|
|
207
203
|
"""
|
|
208
204
|
...
|
|
209
205
|
|
|
210
|
-
def __radd__(
|
|
206
|
+
def __radd__(
|
|
207
|
+
self, other: typing.Union[typing.Sequence[float], Color]
|
|
208
|
+
) -> typing.Union[typing.Sequence[float], Color]:
|
|
211
209
|
"""
|
|
212
210
|
|
|
213
211
|
:param other:
|
|
214
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
215
|
-
:
|
|
212
|
+
:type other: typing.Union[typing.Sequence[float], Color]
|
|
213
|
+
:return:
|
|
214
|
+
:rtype: Color
|
|
216
215
|
"""
|
|
217
216
|
...
|
|
218
217
|
|
|
219
|
-
def __rsub__(
|
|
218
|
+
def __rsub__(
|
|
219
|
+
self, other: typing.Union[typing.Sequence[float], Color]
|
|
220
|
+
) -> typing.Union[typing.Sequence[float], Color]:
|
|
220
221
|
"""
|
|
221
222
|
|
|
222
223
|
:param other:
|
|
223
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
224
|
-
:
|
|
224
|
+
:type other: typing.Union[typing.Sequence[float], Color]
|
|
225
|
+
:return:
|
|
226
|
+
:rtype: Color
|
|
225
227
|
"""
|
|
226
228
|
...
|
|
227
229
|
|
|
228
|
-
def __rmul__(self, other: typing.Union[int, float]) ->
|
|
230
|
+
def __rmul__(self, other: typing.Union[int, float]) -> typing.Union[int, float]:
|
|
229
231
|
"""
|
|
230
232
|
|
|
231
233
|
:param other:
|
|
232
234
|
:type other: typing.Union[int, float]
|
|
233
|
-
:
|
|
235
|
+
:return:
|
|
236
|
+
:rtype: Color
|
|
234
237
|
"""
|
|
235
238
|
...
|
|
236
239
|
|
|
237
|
-
def __rtruediv__(self, other: typing.Union[int, float]) ->
|
|
240
|
+
def __rtruediv__(self, other: typing.Union[int, float]) -> typing.Union[int, float]:
|
|
238
241
|
"""
|
|
239
242
|
|
|
240
243
|
:param other:
|
|
241
244
|
:type other: typing.Union[int, float]
|
|
242
|
-
:
|
|
245
|
+
:return:
|
|
246
|
+
:rtype: Color
|
|
243
247
|
"""
|
|
244
248
|
...
|
|
245
249
|
|
|
246
|
-
def __iadd__(
|
|
250
|
+
def __iadd__(
|
|
251
|
+
self, other: typing.Union[typing.Sequence[float], Color]
|
|
252
|
+
) -> typing.Union[typing.Sequence[float], Color]:
|
|
247
253
|
"""
|
|
248
254
|
|
|
249
255
|
:param other:
|
|
250
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
251
|
-
:
|
|
256
|
+
:type other: typing.Union[typing.Sequence[float], Color]
|
|
257
|
+
:return:
|
|
258
|
+
:rtype: Color
|
|
252
259
|
"""
|
|
253
260
|
...
|
|
254
261
|
|
|
255
|
-
def __isub__(
|
|
262
|
+
def __isub__(
|
|
263
|
+
self, other: typing.Union[typing.Sequence[float], Color]
|
|
264
|
+
) -> typing.Union[typing.Sequence[float], Color]:
|
|
256
265
|
"""
|
|
257
266
|
|
|
258
267
|
:param other:
|
|
259
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
260
|
-
:
|
|
268
|
+
:type other: typing.Union[typing.Sequence[float], Color]
|
|
269
|
+
:return:
|
|
270
|
+
:rtype: Color
|
|
261
271
|
"""
|
|
262
272
|
...
|
|
263
273
|
|
|
264
|
-
def __imul__(self, other: typing.Union[int, float]) ->
|
|
274
|
+
def __imul__(self, other: typing.Union[int, float]) -> typing.Union[int, float]:
|
|
265
275
|
"""
|
|
266
276
|
|
|
267
277
|
:param other:
|
|
268
278
|
:type other: typing.Union[int, float]
|
|
269
|
-
:
|
|
279
|
+
:return:
|
|
280
|
+
:rtype: Color
|
|
270
281
|
"""
|
|
271
282
|
...
|
|
272
283
|
|
|
273
|
-
def __itruediv__(self, other: typing.Union[int, float]) ->
|
|
284
|
+
def __itruediv__(self, other: typing.Union[int, float]) -> typing.Union[int, float]:
|
|
274
285
|
"""
|
|
275
286
|
|
|
276
287
|
:param other:
|
|
277
288
|
:type other: typing.Union[int, float]
|
|
278
|
-
:
|
|
289
|
+
:return:
|
|
290
|
+
:rtype: Color
|
|
279
291
|
"""
|
|
280
292
|
...
|
|
281
293
|
|
|
282
294
|
class Euler:
|
|
283
|
-
"""This object gives access to Eulers in Blender
|
|
295
|
+
"""This object gives access to Eulers in Blender.`Euler angles <https://en.wikipedia.org/wiki/Euler_angles>`__ on Wikipedia."""
|
|
284
296
|
|
|
285
297
|
is_frozen: bool
|
|
286
298
|
""" True when this object has been frozen (read-only).
|
|
@@ -300,14 +312,11 @@ class Euler:
|
|
|
300
312
|
:type: bool
|
|
301
313
|
"""
|
|
302
314
|
|
|
303
|
-
order:
|
|
304
|
-
""" Euler rotation order.
|
|
305
|
-
|
|
306
|
-
:type: str
|
|
307
|
-
"""
|
|
315
|
+
order: typing.Any
|
|
316
|
+
""" Euler rotation order."""
|
|
308
317
|
|
|
309
318
|
owner: typing.Any
|
|
310
|
-
""" The item this is wrapping or None
|
|
319
|
+
""" The item this is wrapping or None (read-only)."""
|
|
311
320
|
|
|
312
321
|
x: float
|
|
313
322
|
""" Euler axis angle in radians.
|
|
@@ -327,69 +336,71 @@ class Euler:
|
|
|
327
336
|
:type: float
|
|
328
337
|
"""
|
|
329
338
|
|
|
330
|
-
|
|
331
|
-
def copy() -> "Euler":
|
|
339
|
+
def copy(self) -> float:
|
|
332
340
|
"""Returns a copy of this euler.
|
|
333
341
|
|
|
334
|
-
:rtype: 'Euler'
|
|
335
342
|
:return: A copy of the euler.
|
|
343
|
+
:rtype: Euler
|
|
336
344
|
"""
|
|
337
345
|
...
|
|
338
346
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
"""Make this object immutable. After this the object can be hashed, used in dictionaries & sets.
|
|
347
|
+
def freeze(self) -> Euler:
|
|
348
|
+
"""Make this object immutable.After this the object can be hashed, used in dictionaries & sets.
|
|
342
349
|
|
|
343
|
-
:rtype: 'Euler'
|
|
344
350
|
:return: An instance of this object.
|
|
345
351
|
"""
|
|
346
352
|
...
|
|
347
353
|
|
|
348
354
|
def make_compatible(self, other):
|
|
349
|
-
"""Make this euler compatible with another,
|
|
355
|
+
"""Make this euler compatible with another,
|
|
356
|
+
so interpolating between them works as intended.
|
|
357
|
+
|
|
358
|
+
:param other:
|
|
359
|
+
"""
|
|
350
360
|
...
|
|
351
361
|
|
|
352
362
|
def rotate(
|
|
353
363
|
self,
|
|
354
364
|
other: typing.Union[
|
|
355
365
|
typing.Sequence[float],
|
|
356
|
-
|
|
366
|
+
Euler,
|
|
357
367
|
typing.Sequence[float],
|
|
358
|
-
|
|
368
|
+
Quaternion,
|
|
359
369
|
typing.Sequence[float],
|
|
360
|
-
|
|
370
|
+
Matrix,
|
|
361
371
|
],
|
|
362
372
|
):
|
|
363
373
|
"""Rotates the euler by another mathutils value.
|
|
364
374
|
|
|
365
375
|
:param other: rotation component of mathutils value
|
|
366
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
376
|
+
:type other: typing.Union[typing.Sequence[float], Euler, typing.Sequence[float], Quaternion, typing.Sequence[float], Matrix]
|
|
367
377
|
"""
|
|
368
378
|
...
|
|
369
379
|
|
|
370
380
|
def rotate_axis(self, axis: str, angle: float):
|
|
371
|
-
"""Rotates the euler a certain amount and returning a unique euler rotation
|
|
381
|
+
"""Rotates the euler a certain amount and returning a unique euler rotation
|
|
382
|
+
(no 720 degree pitches).
|
|
372
383
|
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
384
|
+
:param axis: single character in ['X, 'Y', 'Z'].
|
|
385
|
+
:type axis: str
|
|
386
|
+
:param angle: angle in radians.
|
|
387
|
+
:type angle: float
|
|
377
388
|
"""
|
|
378
389
|
...
|
|
379
390
|
|
|
380
|
-
def to_matrix(self) ->
|
|
391
|
+
def to_matrix(self) -> float:
|
|
381
392
|
"""Return a matrix representation of the euler.
|
|
382
393
|
|
|
383
|
-
:rtype: 'Matrix'
|
|
384
394
|
:return: A 3x3 rotation matrix representation of the euler.
|
|
395
|
+
:rtype: Matrix
|
|
385
396
|
"""
|
|
386
397
|
...
|
|
387
398
|
|
|
388
|
-
def to_quaternion(self) ->
|
|
399
|
+
def to_quaternion(self) -> Matrix:
|
|
389
400
|
"""Return a quaternion representation of the euler.
|
|
390
401
|
|
|
391
|
-
:rtype: 'Quaternion'
|
|
392
402
|
:return: Quaternion representation of the euler.
|
|
403
|
+
:rtype: Quaternion
|
|
393
404
|
"""
|
|
394
405
|
...
|
|
395
406
|
|
|
@@ -397,22 +408,22 @@ class Euler:
|
|
|
397
408
|
"""Set all values to zero."""
|
|
398
409
|
...
|
|
399
410
|
|
|
400
|
-
def __init__(self, angles=(0.0, 0.0, 0.0), order="XYZ")
|
|
411
|
+
def __init__(self, angles=(0.0, 0.0, 0.0), order="XYZ"):
|
|
401
412
|
"""
|
|
402
413
|
|
|
403
|
-
:
|
|
414
|
+
:param angles:
|
|
415
|
+
:param order:
|
|
404
416
|
"""
|
|
405
417
|
...
|
|
406
418
|
|
|
407
419
|
class Matrix:
|
|
408
|
-
"""This object gives access to Matrices in Blender, supporting square and rectangular
|
|
409
|
-
|
|
410
|
-
col: "Matrix"
|
|
411
|
-
""" Access the matrix by columns, 3x3 and 4x4 only, (read-only).
|
|
412
|
-
|
|
413
|
-
:type: 'Matrix'
|
|
420
|
+
"""This object gives access to Matrices in Blender, supporting square and rectangular
|
|
421
|
+
matrices from 2x2 up to 4x4.
|
|
414
422
|
"""
|
|
415
423
|
|
|
424
|
+
col: typing.Any
|
|
425
|
+
""" Access the matrix by columns, 3x3 and 4x4 only, (read-only)."""
|
|
426
|
+
|
|
416
427
|
is_frozen: bool
|
|
417
428
|
""" True when this object has been frozen (read-only).
|
|
418
429
|
|
|
@@ -462,80 +473,75 @@ class Matrix:
|
|
|
462
473
|
"""
|
|
463
474
|
|
|
464
475
|
owner: typing.Any
|
|
465
|
-
""" The item this is wrapping or None
|
|
476
|
+
""" The item this is wrapping or None (read-only)."""
|
|
466
477
|
|
|
467
|
-
row:
|
|
468
|
-
""" Access the matrix by rows (default), (read-only).
|
|
478
|
+
row: typing.Any
|
|
479
|
+
""" Access the matrix by rows (default), (read-only)."""
|
|
469
480
|
|
|
470
|
-
:
|
|
471
|
-
"""
|
|
472
|
-
|
|
473
|
-
translation: "Vector"
|
|
481
|
+
translation: Vector
|
|
474
482
|
""" The translation component of the matrix.
|
|
475
483
|
|
|
476
|
-
:type:
|
|
484
|
+
:type: Vector
|
|
477
485
|
"""
|
|
478
486
|
|
|
479
487
|
@classmethod
|
|
480
488
|
def Diagonal(
|
|
481
|
-
cls, vector: typing.Union[typing.Sequence[float],
|
|
482
|
-
) ->
|
|
489
|
+
cls, vector: typing.Union[typing.Sequence[float], Vector]
|
|
490
|
+
) -> typing.Union[typing.Sequence[float], Vector]:
|
|
483
491
|
"""Create a diagonal (scaling) matrix using the values from the vector.
|
|
484
492
|
|
|
485
493
|
:param vector: The vector of values for the diagonal.
|
|
486
|
-
:type vector: typing.Union[typing.Sequence[float],
|
|
487
|
-
:rtype: 'Matrix'
|
|
494
|
+
:type vector: typing.Union[typing.Sequence[float], Vector]
|
|
488
495
|
:return: A diagonal matrix.
|
|
496
|
+
:rtype: Matrix
|
|
489
497
|
"""
|
|
490
498
|
...
|
|
491
499
|
|
|
492
500
|
@classmethod
|
|
493
|
-
def Identity(cls, size: int) ->
|
|
501
|
+
def Identity(cls, size: int) -> int:
|
|
494
502
|
"""Create an identity matrix.
|
|
495
503
|
|
|
496
504
|
:param size: The size of the identity matrix to construct [2, 4].
|
|
497
505
|
:type size: int
|
|
498
|
-
:rtype: 'Matrix'
|
|
499
506
|
:return: A new identity matrix.
|
|
507
|
+
:rtype: Matrix
|
|
500
508
|
"""
|
|
501
509
|
...
|
|
502
510
|
|
|
503
511
|
@classmethod
|
|
504
512
|
def LocRotScale(
|
|
505
513
|
cls,
|
|
506
|
-
location
|
|
507
|
-
rotation: typing.
|
|
508
|
-
typing.
|
|
509
|
-
typing.Sequence[float], "Quaternion", typing.Sequence[float], "Euler"
|
|
510
|
-
]
|
|
514
|
+
location,
|
|
515
|
+
rotation: typing.Union[
|
|
516
|
+
typing.Sequence[float], Quaternion, typing.Sequence[float], Euler
|
|
511
517
|
],
|
|
512
|
-
scale
|
|
513
|
-
)
|
|
514
|
-
"""Create a matrix combining translation, rotation and scale,
|
|
518
|
+
scale,
|
|
519
|
+
):
|
|
520
|
+
"""Create a matrix combining translation, rotation and scale,
|
|
521
|
+
acting as the inverse of the decompose() method.Any of the inputs may be replaced with None if not needed.
|
|
515
522
|
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
:type scale: typing.Optional['Vector']
|
|
522
|
-
:rtype: 'Matrix'
|
|
523
|
-
:return: Combined transformation matrix.
|
|
523
|
+
:param location: The translation component.
|
|
524
|
+
:param rotation: The rotation component.
|
|
525
|
+
:type rotation: typing.Union[typing.Sequence[float], Quaternion, typing.Sequence[float], Euler]
|
|
526
|
+
:param scale: The scale component.
|
|
527
|
+
:return: Combined transformation matrix.
|
|
524
528
|
"""
|
|
525
529
|
...
|
|
526
530
|
|
|
527
531
|
@classmethod
|
|
528
532
|
def OrthoProjection(
|
|
529
|
-
cls, axis: typing.Union[str, typing.Sequence[float],
|
|
530
|
-
) ->
|
|
533
|
+
cls, axis: typing.Union[str, typing.Sequence[float], Vector], size: int
|
|
534
|
+
) -> int:
|
|
531
535
|
"""Create a matrix to represent an orthographic projection.
|
|
532
536
|
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
537
|
+
:param axis: Can be any of the following: ['X', 'Y', 'XY', 'XZ', 'YZ'],
|
|
538
|
+
where a single axis is for a 2D matrix.
|
|
539
|
+
Or a vector for an arbitrary axis
|
|
540
|
+
:type axis: typing.Union[str, typing.Sequence[float], Vector]
|
|
541
|
+
:param size: The size of the projection matrix to construct [2, 4].
|
|
542
|
+
:type size: int
|
|
543
|
+
:return: A new projection matrix.
|
|
544
|
+
:rtype: Matrix
|
|
539
545
|
"""
|
|
540
546
|
...
|
|
541
547
|
|
|
@@ -544,18 +550,19 @@ class Matrix:
|
|
|
544
550
|
cls,
|
|
545
551
|
angle: float,
|
|
546
552
|
size: int,
|
|
547
|
-
axis: typing.Union[str, typing.Sequence[float],
|
|
548
|
-
) ->
|
|
553
|
+
axis: typing.Union[str, typing.Sequence[float], Vector],
|
|
554
|
+
) -> typing.Union[str, typing.Sequence[float], Vector]:
|
|
549
555
|
"""Create a matrix representing a rotation.
|
|
550
556
|
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
557
|
+
:param angle: The angle of rotation desired, in radians.
|
|
558
|
+
:type angle: float
|
|
559
|
+
:param size: The size of the rotation matrix to construct [2, 4].
|
|
560
|
+
:type size: int
|
|
561
|
+
:param axis: a string in ['X', 'Y', 'Z'] or a 3D Vector Object
|
|
562
|
+
(optional when size is 2).
|
|
563
|
+
:type axis: typing.Union[str, typing.Sequence[float], Vector]
|
|
564
|
+
:return: A new rotation matrix.
|
|
565
|
+
:rtype: Matrix
|
|
559
566
|
"""
|
|
560
567
|
...
|
|
561
568
|
|
|
@@ -564,8 +571,8 @@ class Matrix:
|
|
|
564
571
|
cls,
|
|
565
572
|
factor: float,
|
|
566
573
|
size: int,
|
|
567
|
-
axis: typing.Union[typing.Sequence[float],
|
|
568
|
-
) ->
|
|
574
|
+
axis: typing.Union[typing.Sequence[float], Vector],
|
|
575
|
+
) -> typing.Union[typing.Sequence[float], Vector]:
|
|
569
576
|
"""Create a matrix representing a scaling.
|
|
570
577
|
|
|
571
578
|
:param factor: The factor of scaling to apply.
|
|
@@ -573,131 +580,138 @@ class Matrix:
|
|
|
573
580
|
:param size: The size of the scale matrix to construct [2, 4].
|
|
574
581
|
:type size: int
|
|
575
582
|
:param axis: Direction to influence scale. (optional).
|
|
576
|
-
:type axis: typing.Union[typing.Sequence[float],
|
|
577
|
-
:rtype: 'Matrix'
|
|
583
|
+
:type axis: typing.Union[typing.Sequence[float], Vector]
|
|
578
584
|
:return: A new scale matrix.
|
|
585
|
+
:rtype: Matrix
|
|
579
586
|
"""
|
|
580
587
|
...
|
|
581
588
|
|
|
582
589
|
@classmethod
|
|
583
|
-
def Shear(cls, plane: str, size: int, factor: float) ->
|
|
590
|
+
def Shear(cls, plane: str, size: int, factor: float) -> float:
|
|
584
591
|
"""Create a matrix to represent an shear transformation.
|
|
585
592
|
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
593
|
+
:param plane: Can be any of the following: ['X', 'Y', 'XY', 'XZ', 'YZ'],
|
|
594
|
+
where a single axis is for a 2D matrix only.
|
|
595
|
+
:type plane: str
|
|
596
|
+
:param size: The size of the shear matrix to construct [2, 4].
|
|
597
|
+
:type size: int
|
|
598
|
+
:param factor: The factor of shear to apply. For a 3 or 4 size matrix
|
|
599
|
+
pass a pair of floats corresponding with the plane axis.
|
|
600
|
+
:type factor: float
|
|
601
|
+
:return: A new shear matrix.
|
|
602
|
+
:rtype: Matrix
|
|
594
603
|
"""
|
|
595
604
|
...
|
|
596
605
|
|
|
597
606
|
@classmethod
|
|
598
607
|
def Translation(
|
|
599
|
-
cls, vector: typing.Union[typing.Sequence[float],
|
|
600
|
-
) ->
|
|
608
|
+
cls, vector: typing.Union[typing.Sequence[float], Vector]
|
|
609
|
+
) -> typing.Union[typing.Sequence[float], Vector]:
|
|
601
610
|
"""Create a matrix representing a translation.
|
|
602
611
|
|
|
603
612
|
:param vector: The translation vector.
|
|
604
|
-
:type vector: typing.Union[typing.Sequence[float],
|
|
605
|
-
:rtype: 'Matrix'
|
|
613
|
+
:type vector: typing.Union[typing.Sequence[float], Vector]
|
|
606
614
|
:return: An identity matrix with a translation.
|
|
615
|
+
:rtype: Matrix
|
|
607
616
|
"""
|
|
608
617
|
...
|
|
609
618
|
|
|
610
619
|
def adjugate(self):
|
|
611
|
-
"""Set the matrix to its adjugate
|
|
620
|
+
"""Set the matrix to its adjugate.`Adjugate matrix <https://en.wikipedia.org/wiki/Adjugate_matrix>`__ on Wikipedia."""
|
|
612
621
|
...
|
|
613
622
|
|
|
614
|
-
def adjugated(self) ->
|
|
615
|
-
"""Return an adjugated copy of the matrix.
|
|
623
|
+
def adjugated(self) -> Matrix:
|
|
624
|
+
"""Return an adjugated copy of the matrix.
|
|
616
625
|
|
|
617
|
-
:rtype: 'Matrix'
|
|
618
626
|
:return: the adjugated matrix.
|
|
627
|
+
:rtype: Matrix
|
|
619
628
|
"""
|
|
620
629
|
...
|
|
621
630
|
|
|
622
|
-
def copy(self) ->
|
|
631
|
+
def copy(self) -> Matrix:
|
|
623
632
|
"""Returns a copy of this matrix.
|
|
624
633
|
|
|
625
|
-
:rtype: 'Matrix'
|
|
626
634
|
:return: an instance of itself
|
|
635
|
+
:rtype: Matrix
|
|
627
636
|
"""
|
|
628
637
|
...
|
|
629
638
|
|
|
630
|
-
def decompose(self) ->
|
|
639
|
+
def decompose(self) -> Matrix:
|
|
631
640
|
"""Return the translation, rotation, and scale components of this matrix.
|
|
632
641
|
|
|
633
|
-
:rtype: 'Quaternion'
|
|
634
642
|
:return: tuple of translation, rotation, and scale
|
|
643
|
+
:rtype: Quaternion
|
|
635
644
|
"""
|
|
636
645
|
...
|
|
637
646
|
|
|
638
|
-
def determinant(self) ->
|
|
639
|
-
"""Return the determinant of a matrix.
|
|
647
|
+
def determinant(self) -> Quaternion:
|
|
648
|
+
"""Return the determinant of a matrix.`Determinant <https://en.wikipedia.org/wiki/Determinant>`__ on Wikipedia.
|
|
640
649
|
|
|
641
|
-
:rtype: float
|
|
642
650
|
:return: Return the determinant of a matrix.
|
|
651
|
+
:rtype: float
|
|
643
652
|
"""
|
|
644
653
|
...
|
|
645
654
|
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
"""Make this object immutable. After this the object can be hashed, used in dictionaries & sets.
|
|
655
|
+
def freeze(self) -> float:
|
|
656
|
+
"""Make this object immutable.After this the object can be hashed, used in dictionaries & sets.
|
|
649
657
|
|
|
650
|
-
:rtype: 'Matrix'
|
|
651
658
|
:return: An instance of this object.
|
|
652
659
|
"""
|
|
653
660
|
...
|
|
654
661
|
|
|
655
662
|
def identity(self):
|
|
656
|
-
"""Set the matrix to the identity matrix."""
|
|
663
|
+
"""Set the matrix to the identity matrix.`Identity matrix <https://en.wikipedia.org/wiki/Identity_matrix>`__ on Wikipedia."""
|
|
657
664
|
...
|
|
658
665
|
|
|
659
|
-
def invert(self, fallback: typing.Union[typing.Sequence[float],
|
|
660
|
-
"""Set the matrix to its inverse.
|
|
666
|
+
def invert(self, fallback: typing.Union[typing.Sequence[float], Matrix] = None):
|
|
667
|
+
"""Set the matrix to its inverse.`Inverse matrix <https://en.wikipedia.org/wiki/Inverse_matrix>`__ on Wikipedia.
|
|
661
668
|
|
|
662
|
-
|
|
663
|
-
|
|
669
|
+
:param fallback: Set the matrix to this value when the inverse cannot be calculated
|
|
670
|
+
(instead of raising a `ValueError` exception).
|
|
671
|
+
:type fallback: typing.Union[typing.Sequence[float], Matrix]
|
|
664
672
|
"""
|
|
665
673
|
...
|
|
666
674
|
|
|
667
675
|
def invert_safe(self):
|
|
668
|
-
"""Set the matrix to its inverse, will never error.
|
|
676
|
+
"""Set the matrix to its inverse, will never error.
|
|
677
|
+
If degenerated (e.g. zero scale on an axis), add some epsilon to its diagonal, to get an invertible one.
|
|
678
|
+
If tweaked matrix is still degenerated, set to the identity matrix instead.`Inverse Matrix <https://en.wikipedia.org/wiki/Inverse_matrix>`__ on Wikipedia.
|
|
679
|
+
|
|
680
|
+
"""
|
|
669
681
|
...
|
|
670
682
|
|
|
671
|
-
def inverted(self, fallback: typing.Any = None) ->
|
|
683
|
+
def inverted(self, fallback: typing.Any = None) -> typing.Any:
|
|
672
684
|
"""Return an inverted copy of the matrix.
|
|
673
685
|
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
686
|
+
:param fallback: return this when the inverse can't be calculated
|
|
687
|
+
(instead of raising a `ValueError`).
|
|
688
|
+
:type fallback: typing.Any
|
|
689
|
+
:return: the inverted matrix or fallback when given.
|
|
690
|
+
:rtype: Matrix
|
|
678
691
|
"""
|
|
679
692
|
...
|
|
680
693
|
|
|
681
|
-
def inverted_safe(self) ->
|
|
682
|
-
"""Return an inverted copy of the matrix, will never error.
|
|
694
|
+
def inverted_safe(self) -> Matrix:
|
|
695
|
+
"""Return an inverted copy of the matrix, will never error.
|
|
696
|
+
If degenerated (e.g. zero scale on an axis), add some epsilon to its diagonal, to get an invertible one.
|
|
697
|
+
If tweaked matrix is still degenerated, return the identity matrix instead.
|
|
683
698
|
|
|
684
|
-
|
|
685
|
-
|
|
699
|
+
:return: the inverted matrix.
|
|
700
|
+
:rtype: Matrix
|
|
686
701
|
"""
|
|
687
702
|
...
|
|
688
703
|
|
|
689
|
-
@staticmethod
|
|
690
704
|
def lerp(
|
|
691
|
-
other: typing.Union[typing.Sequence[float],
|
|
692
|
-
) ->
|
|
693
|
-
"""Returns the interpolation of two matrices. Uses polar decomposition, see
|
|
705
|
+
self, other: typing.Union[typing.Sequence[float], Matrix], factor: float
|
|
706
|
+
) -> float:
|
|
707
|
+
"""Returns the interpolation of two matrices. Uses polar decomposition, see "Matrix Animation and Polar Decomposition", Shoemake and Duff, 1992.
|
|
694
708
|
|
|
695
709
|
:param other: value to interpolate with.
|
|
696
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
710
|
+
:type other: typing.Union[typing.Sequence[float], Matrix]
|
|
697
711
|
:param factor: The interpolation value in [0.0, 1.0].
|
|
698
712
|
:type factor: float
|
|
699
|
-
:rtype: 'Matrix'
|
|
700
713
|
:return: The interpolated matrix.
|
|
714
|
+
:rtype: Matrix
|
|
701
715
|
"""
|
|
702
716
|
...
|
|
703
717
|
|
|
@@ -705,11 +719,11 @@ class Matrix:
|
|
|
705
719
|
"""Normalize each of the matrix columns."""
|
|
706
720
|
...
|
|
707
721
|
|
|
708
|
-
def normalized(self) ->
|
|
722
|
+
def normalized(self) -> Matrix:
|
|
709
723
|
"""Return a column normalized matrix
|
|
710
724
|
|
|
711
|
-
:rtype: 'Matrix'
|
|
712
725
|
:return: a column normalized matrix
|
|
726
|
+
:rtype: Matrix
|
|
713
727
|
"""
|
|
714
728
|
...
|
|
715
729
|
|
|
@@ -721,91 +735,104 @@ class Matrix:
|
|
|
721
735
|
self,
|
|
722
736
|
other: typing.Union[
|
|
723
737
|
typing.Sequence[float],
|
|
724
|
-
|
|
738
|
+
Euler,
|
|
725
739
|
typing.Sequence[float],
|
|
726
|
-
|
|
740
|
+
Quaternion,
|
|
727
741
|
typing.Sequence[float],
|
|
728
|
-
|
|
742
|
+
Matrix,
|
|
729
743
|
],
|
|
730
744
|
):
|
|
731
745
|
"""Rotates the matrix by another mathutils value.
|
|
732
746
|
|
|
733
747
|
:param other: rotation component of mathutils value
|
|
734
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
748
|
+
:type other: typing.Union[typing.Sequence[float], Euler, typing.Sequence[float], Quaternion, typing.Sequence[float], Matrix]
|
|
735
749
|
"""
|
|
736
750
|
...
|
|
737
751
|
|
|
738
|
-
def to_2x2(
|
|
752
|
+
def to_2x2(
|
|
753
|
+
self,
|
|
754
|
+
) -> typing.Union[
|
|
755
|
+
typing.Sequence[float],
|
|
756
|
+
Euler,
|
|
757
|
+
typing.Sequence[float],
|
|
758
|
+
Quaternion,
|
|
759
|
+
typing.Sequence[float],
|
|
760
|
+
Matrix,
|
|
761
|
+
]:
|
|
739
762
|
"""Return a 2x2 copy of this matrix.
|
|
740
763
|
|
|
741
|
-
:rtype: 'Matrix'
|
|
742
764
|
:return: a new matrix.
|
|
765
|
+
:rtype: Matrix
|
|
743
766
|
"""
|
|
744
767
|
...
|
|
745
768
|
|
|
746
|
-
def to_3x3(self) ->
|
|
769
|
+
def to_3x3(self) -> Matrix:
|
|
747
770
|
"""Return a 3x3 copy of this matrix.
|
|
748
771
|
|
|
749
|
-
:rtype: 'Matrix'
|
|
750
772
|
:return: a new matrix.
|
|
773
|
+
:rtype: Matrix
|
|
751
774
|
"""
|
|
752
775
|
...
|
|
753
776
|
|
|
754
|
-
def to_4x4(self) ->
|
|
777
|
+
def to_4x4(self) -> Matrix:
|
|
755
778
|
"""Return a 4x4 copy of this matrix.
|
|
756
779
|
|
|
757
|
-
:rtype: 'Matrix'
|
|
758
780
|
:return: a new matrix.
|
|
781
|
+
:rtype: Matrix
|
|
759
782
|
"""
|
|
760
783
|
...
|
|
761
784
|
|
|
762
785
|
def to_euler(
|
|
763
|
-
self, order: str, euler_compat: typing.Union[typing.Sequence[float],
|
|
764
|
-
) ->
|
|
765
|
-
"""Return an Euler representation of the rotation matrix
|
|
786
|
+
self, order: str, euler_compat: typing.Union[typing.Sequence[float], Euler]
|
|
787
|
+
) -> typing.Union[typing.Sequence[float], Euler]:
|
|
788
|
+
"""Return an Euler representation of the rotation matrix
|
|
789
|
+
(3x3 or 4x4 matrix only).
|
|
766
790
|
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
791
|
+
:param order: Optional rotation order argument in
|
|
792
|
+
['XYZ', 'XZY', 'YXZ', 'YZX', 'ZXY', 'ZYX'].
|
|
793
|
+
:type order: str
|
|
794
|
+
:param euler_compat: Optional euler argument the new euler will be made
|
|
795
|
+
compatible with (no axis flipping between them).
|
|
796
|
+
Useful for converting a series of matrices to animation curves.
|
|
797
|
+
:type euler_compat: typing.Union[typing.Sequence[float], Euler]
|
|
798
|
+
:return: Euler representation of the matrix.
|
|
799
|
+
:rtype: Euler
|
|
773
800
|
"""
|
|
774
801
|
...
|
|
775
802
|
|
|
776
|
-
def to_quaternion(self) ->
|
|
803
|
+
def to_quaternion(self) -> Euler:
|
|
777
804
|
"""Return a quaternion representation of the rotation matrix.
|
|
778
805
|
|
|
779
|
-
:rtype: 'Quaternion'
|
|
780
806
|
:return: Quaternion representation of the rotation matrix.
|
|
807
|
+
:rtype: Quaternion
|
|
781
808
|
"""
|
|
782
809
|
...
|
|
783
810
|
|
|
784
|
-
def to_scale(self) ->
|
|
811
|
+
def to_scale(self) -> Quaternion:
|
|
785
812
|
"""Return the scale part of a 3x3 or 4x4 matrix.
|
|
786
813
|
|
|
787
|
-
:rtype: 'Vector'
|
|
788
814
|
:return: Return the scale of a matrix.
|
|
815
|
+
:rtype: Vector
|
|
789
816
|
"""
|
|
790
817
|
...
|
|
791
818
|
|
|
792
|
-
def to_translation(self) ->
|
|
819
|
+
def to_translation(self) -> Vector:
|
|
793
820
|
"""Return the translation part of a 4 row matrix.
|
|
794
821
|
|
|
795
|
-
:rtype: 'Vector'
|
|
796
822
|
:return: Return the translation of a matrix.
|
|
823
|
+
:rtype: Vector
|
|
797
824
|
"""
|
|
798
825
|
...
|
|
799
826
|
|
|
800
827
|
def transpose(self):
|
|
801
|
-
"""Set the matrix to its transpose."""
|
|
828
|
+
"""Set the matrix to its transpose.`Transpose <https://en.wikipedia.org/wiki/Transpose>`__ on Wikipedia."""
|
|
802
829
|
...
|
|
803
830
|
|
|
804
|
-
def transposed(self) ->
|
|
831
|
+
def transposed(self) -> Vector:
|
|
805
832
|
"""Return a new, transposed matrix.
|
|
806
833
|
|
|
807
|
-
:rtype: 'Matrix'
|
|
808
834
|
:return: a transposed matrix
|
|
835
|
+
:rtype: Matrix
|
|
809
836
|
"""
|
|
810
837
|
...
|
|
811
838
|
|
|
@@ -821,138 +848,150 @@ class Matrix:
|
|
|
821
848
|
(0.0, 0.0, 1.0, 0.0),
|
|
822
849
|
(0.0, 0.0, 0.0, 1.0),
|
|
823
850
|
),
|
|
824
|
-
)
|
|
851
|
+
):
|
|
825
852
|
"""
|
|
826
853
|
|
|
827
|
-
:
|
|
854
|
+
:param rows:
|
|
828
855
|
"""
|
|
829
856
|
...
|
|
830
857
|
|
|
831
|
-
def __getitem__(self, key: int) ->
|
|
858
|
+
def __getitem__(self, key: int) -> int:
|
|
832
859
|
"""
|
|
833
860
|
|
|
834
861
|
:param key:
|
|
835
862
|
:type key: int
|
|
836
|
-
:
|
|
863
|
+
:return:
|
|
864
|
+
:rtype: Vector
|
|
837
865
|
"""
|
|
838
866
|
...
|
|
839
867
|
|
|
840
|
-
def __len__(self) ->
|
|
868
|
+
def __len__(self) -> Vector:
|
|
841
869
|
"""
|
|
842
870
|
|
|
871
|
+
:return:
|
|
843
872
|
:rtype: int
|
|
844
873
|
"""
|
|
845
874
|
...
|
|
846
875
|
|
|
847
876
|
def __add__(
|
|
848
|
-
self, other: typing.Union[typing.Sequence[float],
|
|
849
|
-
) ->
|
|
877
|
+
self, other: typing.Union[typing.Sequence[float], Matrix]
|
|
878
|
+
) -> typing.Union[typing.Sequence[float], Matrix]:
|
|
850
879
|
"""
|
|
851
880
|
|
|
852
881
|
:param other:
|
|
853
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
854
|
-
:
|
|
882
|
+
:type other: typing.Union[typing.Sequence[float], Matrix]
|
|
883
|
+
:return:
|
|
884
|
+
:rtype: Matrix
|
|
855
885
|
"""
|
|
856
886
|
...
|
|
857
887
|
|
|
858
888
|
def __sub__(
|
|
859
|
-
self, other: typing.Union[typing.Sequence[float],
|
|
860
|
-
) ->
|
|
889
|
+
self, other: typing.Union[typing.Sequence[float], Matrix]
|
|
890
|
+
) -> typing.Union[typing.Sequence[float], Matrix]:
|
|
861
891
|
"""
|
|
862
892
|
|
|
863
893
|
:param other:
|
|
864
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
865
|
-
:
|
|
894
|
+
:type other: typing.Union[typing.Sequence[float], Matrix]
|
|
895
|
+
:return:
|
|
896
|
+
:rtype: Matrix
|
|
866
897
|
"""
|
|
867
898
|
...
|
|
868
899
|
|
|
869
|
-
def __mul__(self, other: typing.Union[int, float]) ->
|
|
900
|
+
def __mul__(self, other: typing.Union[int, float]) -> typing.Union[int, float]:
|
|
870
901
|
"""
|
|
871
902
|
|
|
872
903
|
:param other:
|
|
873
904
|
:type other: typing.Union[int, float]
|
|
874
|
-
:
|
|
905
|
+
:return:
|
|
906
|
+
:rtype: Matrix
|
|
875
907
|
"""
|
|
876
908
|
...
|
|
877
909
|
|
|
878
910
|
def __matmul__(
|
|
879
911
|
self,
|
|
880
912
|
other: typing.Union[
|
|
881
|
-
typing.Sequence[float],
|
|
913
|
+
typing.Sequence[float], Matrix, typing.Sequence[float], Vector
|
|
882
914
|
],
|
|
883
|
-
) -> typing.Union[
|
|
915
|
+
) -> typing.Union[typing.Sequence[float], Matrix, typing.Sequence[float], Vector]:
|
|
884
916
|
"""
|
|
885
917
|
|
|
886
918
|
:param other:
|
|
887
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
888
|
-
:
|
|
919
|
+
:type other: typing.Union[typing.Sequence[float], Matrix, typing.Sequence[float], Vector]
|
|
920
|
+
:return:
|
|
921
|
+
:rtype: typing.Union[Matrix, Vector]
|
|
889
922
|
"""
|
|
890
923
|
...
|
|
891
924
|
|
|
892
925
|
def __radd__(
|
|
893
|
-
self, other: typing.Union[typing.Sequence[float],
|
|
894
|
-
) ->
|
|
926
|
+
self, other: typing.Union[typing.Sequence[float], Matrix]
|
|
927
|
+
) -> typing.Union[typing.Sequence[float], Matrix]:
|
|
895
928
|
"""
|
|
896
929
|
|
|
897
930
|
:param other:
|
|
898
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
899
|
-
:
|
|
931
|
+
:type other: typing.Union[typing.Sequence[float], Matrix]
|
|
932
|
+
:return:
|
|
933
|
+
:rtype: Matrix
|
|
900
934
|
"""
|
|
901
935
|
...
|
|
902
936
|
|
|
903
937
|
def __rsub__(
|
|
904
|
-
self, other: typing.Union[typing.Sequence[float],
|
|
905
|
-
) ->
|
|
938
|
+
self, other: typing.Union[typing.Sequence[float], Matrix]
|
|
939
|
+
) -> typing.Union[typing.Sequence[float], Matrix]:
|
|
906
940
|
"""
|
|
907
941
|
|
|
908
942
|
:param other:
|
|
909
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
910
|
-
:
|
|
943
|
+
:type other: typing.Union[typing.Sequence[float], Matrix]
|
|
944
|
+
:return:
|
|
945
|
+
:rtype: Matrix
|
|
911
946
|
"""
|
|
912
947
|
...
|
|
913
948
|
|
|
914
|
-
def __rmul__(self, other: typing.Union[int, float]) ->
|
|
949
|
+
def __rmul__(self, other: typing.Union[int, float]) -> typing.Union[int, float]:
|
|
915
950
|
"""
|
|
916
951
|
|
|
917
952
|
:param other:
|
|
918
953
|
:type other: typing.Union[int, float]
|
|
919
|
-
:
|
|
954
|
+
:return:
|
|
955
|
+
:rtype: Matrix
|
|
920
956
|
"""
|
|
921
957
|
...
|
|
922
958
|
|
|
923
959
|
def __rmatmul__(
|
|
924
|
-
self, other: typing.Union[typing.Sequence[float],
|
|
925
|
-
) ->
|
|
960
|
+
self, other: typing.Union[typing.Sequence[float], Matrix]
|
|
961
|
+
) -> typing.Union[typing.Sequence[float], Matrix]:
|
|
926
962
|
"""
|
|
927
963
|
|
|
928
964
|
:param other:
|
|
929
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
930
|
-
:
|
|
965
|
+
:type other: typing.Union[typing.Sequence[float], Matrix]
|
|
966
|
+
:return:
|
|
967
|
+
:rtype: Matrix
|
|
931
968
|
"""
|
|
932
969
|
...
|
|
933
970
|
|
|
934
|
-
def __imul__(self, other: typing.Union[int, float]) ->
|
|
971
|
+
def __imul__(self, other: typing.Union[int, float]) -> typing.Union[int, float]:
|
|
935
972
|
"""
|
|
936
973
|
|
|
937
974
|
:param other:
|
|
938
975
|
:type other: typing.Union[int, float]
|
|
939
|
-
:
|
|
976
|
+
:return:
|
|
977
|
+
:rtype: Matrix
|
|
940
978
|
"""
|
|
941
979
|
...
|
|
942
980
|
|
|
943
981
|
def __imatmul__(
|
|
944
|
-
self, other: typing.Union[typing.Sequence[float],
|
|
945
|
-
) ->
|
|
982
|
+
self, other: typing.Union[typing.Sequence[float], Matrix]
|
|
983
|
+
) -> typing.Union[typing.Sequence[float], Matrix]:
|
|
946
984
|
"""
|
|
947
985
|
|
|
948
986
|
:param other:
|
|
949
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
950
|
-
:
|
|
987
|
+
:type other: typing.Union[typing.Sequence[float], Matrix]
|
|
988
|
+
:return:
|
|
989
|
+
:rtype: Matrix
|
|
951
990
|
"""
|
|
952
991
|
...
|
|
953
992
|
|
|
954
993
|
class Quaternion:
|
|
955
|
-
"""This object gives access to Quaternions in Blender.
|
|
994
|
+
"""This object gives access to Quaternions in Blender.The constructor takes arguments in various forms:"""
|
|
956
995
|
|
|
957
996
|
angle: float
|
|
958
997
|
""" Angle of the quaternion.
|
|
@@ -960,10 +999,10 @@ class Quaternion:
|
|
|
960
999
|
:type: float
|
|
961
1000
|
"""
|
|
962
1001
|
|
|
963
|
-
axis: typing.Union[typing.Sequence[float],
|
|
1002
|
+
axis: typing.Union[typing.Sequence[float], Vector]
|
|
964
1003
|
""" Quaternion axis as a vector.
|
|
965
1004
|
|
|
966
|
-
:type: typing.Union[typing.Sequence[float],
|
|
1005
|
+
:type: typing.Union[typing.Sequence[float], Vector]
|
|
967
1006
|
"""
|
|
968
1007
|
|
|
969
1008
|
is_frozen: bool
|
|
@@ -991,7 +1030,7 @@ class Quaternion:
|
|
|
991
1030
|
"""
|
|
992
1031
|
|
|
993
1032
|
owner: typing.Any
|
|
994
|
-
""" The item this is wrapping or None
|
|
1033
|
+
""" The item this is wrapping or None (read-only)."""
|
|
995
1034
|
|
|
996
1035
|
w: float
|
|
997
1036
|
""" Quaternion axis value.
|
|
@@ -1017,99 +1056,94 @@ class Quaternion:
|
|
|
1017
1056
|
:type: float
|
|
1018
1057
|
"""
|
|
1019
1058
|
|
|
1020
|
-
|
|
1021
|
-
def conjugate():
|
|
1059
|
+
def conjugate(self):
|
|
1022
1060
|
"""Set the quaternion to its conjugate (negate x, y, z)."""
|
|
1023
1061
|
...
|
|
1024
1062
|
|
|
1025
|
-
|
|
1026
|
-
def conjugated() -> "Quaternion":
|
|
1063
|
+
def conjugated(self) -> float:
|
|
1027
1064
|
"""Return a new conjugated quaternion.
|
|
1028
1065
|
|
|
1029
|
-
:rtype: 'Quaternion'
|
|
1030
1066
|
:return: a new quaternion.
|
|
1067
|
+
:rtype: Quaternion
|
|
1031
1068
|
"""
|
|
1032
1069
|
...
|
|
1033
1070
|
|
|
1034
|
-
|
|
1035
|
-
def copy() -> "Quaternion":
|
|
1071
|
+
def copy(self) -> Quaternion:
|
|
1036
1072
|
"""Returns a copy of this quaternion.
|
|
1037
1073
|
|
|
1038
|
-
:rtype: 'Quaternion'
|
|
1039
1074
|
:return: A copy of the quaternion.
|
|
1075
|
+
:rtype: Quaternion
|
|
1040
1076
|
"""
|
|
1041
1077
|
...
|
|
1042
1078
|
|
|
1043
1079
|
def cross(
|
|
1044
|
-
self, other: typing.Union[typing.Sequence[float],
|
|
1045
|
-
) ->
|
|
1080
|
+
self, other: typing.Union[typing.Sequence[float], Quaternion]
|
|
1081
|
+
) -> typing.Union[typing.Sequence[float], Quaternion]:
|
|
1046
1082
|
"""Return the cross product of this quaternion and another.
|
|
1047
1083
|
|
|
1048
1084
|
:param other: The other quaternion to perform the cross product with.
|
|
1049
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
1050
|
-
:rtype: 'Quaternion'
|
|
1085
|
+
:type other: typing.Union[typing.Sequence[float], Quaternion]
|
|
1051
1086
|
:return: The cross product.
|
|
1087
|
+
:rtype: Quaternion
|
|
1052
1088
|
"""
|
|
1053
1089
|
...
|
|
1054
1090
|
|
|
1055
|
-
def dot(
|
|
1091
|
+
def dot(
|
|
1092
|
+
self, other: typing.Union[typing.Sequence[float], Quaternion]
|
|
1093
|
+
) -> typing.Union[typing.Sequence[float], Quaternion]:
|
|
1056
1094
|
"""Return the dot product of this quaternion and another.
|
|
1057
1095
|
|
|
1058
1096
|
:param other: The other quaternion to perform the dot product with.
|
|
1059
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
1060
|
-
:rtype: float
|
|
1097
|
+
:type other: typing.Union[typing.Sequence[float], Quaternion]
|
|
1061
1098
|
:return: The dot product.
|
|
1099
|
+
:rtype: float
|
|
1062
1100
|
"""
|
|
1063
1101
|
...
|
|
1064
1102
|
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
"""Make this object immutable. After this the object can be hashed, used in dictionaries & sets.
|
|
1103
|
+
def freeze(self) -> float:
|
|
1104
|
+
"""Make this object immutable.After this the object can be hashed, used in dictionaries & sets.
|
|
1068
1105
|
|
|
1069
|
-
:rtype: 'Quaternion'
|
|
1070
1106
|
:return: An instance of this object.
|
|
1071
1107
|
"""
|
|
1072
1108
|
...
|
|
1073
1109
|
|
|
1074
|
-
|
|
1075
|
-
def identity():
|
|
1110
|
+
def identity(self):
|
|
1076
1111
|
"""Set the quaternion to an identity quaternion."""
|
|
1077
1112
|
...
|
|
1078
1113
|
|
|
1079
|
-
|
|
1080
|
-
def invert():
|
|
1114
|
+
def invert(self):
|
|
1081
1115
|
"""Set the quaternion to its inverse."""
|
|
1082
1116
|
...
|
|
1083
1117
|
|
|
1084
|
-
|
|
1085
|
-
def inverted() -> "Quaternion":
|
|
1118
|
+
def inverted(self):
|
|
1086
1119
|
"""Return a new, inverted quaternion.
|
|
1087
1120
|
|
|
1088
|
-
:rtype: 'Quaternion'
|
|
1089
1121
|
:return: the inverted value.
|
|
1122
|
+
:rtype: Quaternion
|
|
1090
1123
|
"""
|
|
1091
1124
|
...
|
|
1092
1125
|
|
|
1093
1126
|
def make_compatible(self, other):
|
|
1094
|
-
"""Make this quaternion compatible with another,
|
|
1127
|
+
"""Make this quaternion compatible with another,
|
|
1128
|
+
so interpolating between them works as intended.
|
|
1129
|
+
|
|
1130
|
+
:param other:
|
|
1131
|
+
"""
|
|
1095
1132
|
...
|
|
1096
1133
|
|
|
1097
|
-
|
|
1098
|
-
def negate():
|
|
1134
|
+
def negate(self):
|
|
1099
1135
|
"""Set the quaternion to its negative."""
|
|
1100
1136
|
...
|
|
1101
1137
|
|
|
1102
|
-
|
|
1103
|
-
def normalize():
|
|
1138
|
+
def normalize(self):
|
|
1104
1139
|
"""Normalize the quaternion."""
|
|
1105
1140
|
...
|
|
1106
1141
|
|
|
1107
|
-
|
|
1108
|
-
def normalized() -> "Quaternion":
|
|
1142
|
+
def normalized(self):
|
|
1109
1143
|
"""Return a new normalized quaternion.
|
|
1110
1144
|
|
|
1111
|
-
:rtype: 'Quaternion'
|
|
1112
1145
|
:return: a normalized copy.
|
|
1146
|
+
:rtype: Quaternion
|
|
1113
1147
|
"""
|
|
1114
1148
|
...
|
|
1115
1149
|
|
|
@@ -1117,115 +1151,118 @@ class Quaternion:
|
|
|
1117
1151
|
self,
|
|
1118
1152
|
other: typing.Union[
|
|
1119
1153
|
typing.Sequence[float],
|
|
1120
|
-
|
|
1154
|
+
Euler,
|
|
1121
1155
|
typing.Sequence[float],
|
|
1122
|
-
|
|
1156
|
+
Quaternion,
|
|
1123
1157
|
typing.Sequence[float],
|
|
1124
|
-
|
|
1158
|
+
Matrix,
|
|
1125
1159
|
],
|
|
1126
1160
|
):
|
|
1127
1161
|
"""Rotates the quaternion by another mathutils value.
|
|
1128
1162
|
|
|
1129
1163
|
:param other: rotation component of mathutils value
|
|
1130
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
1164
|
+
:type other: typing.Union[typing.Sequence[float], Euler, typing.Sequence[float], Quaternion, typing.Sequence[float], Matrix]
|
|
1131
1165
|
"""
|
|
1132
1166
|
...
|
|
1133
1167
|
|
|
1134
|
-
@staticmethod
|
|
1135
1168
|
def rotation_difference(
|
|
1136
|
-
other: typing.Union[typing.Sequence[float],
|
|
1137
|
-
) ->
|
|
1169
|
+
self, other: typing.Union[typing.Sequence[float], Quaternion]
|
|
1170
|
+
) -> typing.Union[typing.Sequence[float], Quaternion]:
|
|
1138
1171
|
"""Returns a quaternion representing the rotational difference.
|
|
1139
1172
|
|
|
1140
1173
|
:param other: second quaternion.
|
|
1141
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
1142
|
-
:rtype: 'Quaternion'
|
|
1174
|
+
:type other: typing.Union[typing.Sequence[float], Quaternion]
|
|
1143
1175
|
:return: the rotational difference between the two quat rotations.
|
|
1176
|
+
:rtype: Quaternion
|
|
1144
1177
|
"""
|
|
1145
1178
|
...
|
|
1146
1179
|
|
|
1147
|
-
@staticmethod
|
|
1148
1180
|
def slerp(
|
|
1149
|
-
other: typing.Union[typing.Sequence[float],
|
|
1150
|
-
) ->
|
|
1181
|
+
self, other: typing.Union[typing.Sequence[float], Quaternion], factor: float
|
|
1182
|
+
) -> float:
|
|
1151
1183
|
"""Returns the interpolation of two quaternions.
|
|
1152
1184
|
|
|
1153
1185
|
:param other: value to interpolate with.
|
|
1154
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
1186
|
+
:type other: typing.Union[typing.Sequence[float], Quaternion]
|
|
1155
1187
|
:param factor: The interpolation value in [0.0, 1.0].
|
|
1156
1188
|
:type factor: float
|
|
1157
|
-
:rtype: 'Quaternion'
|
|
1158
1189
|
:return: The interpolated rotation.
|
|
1190
|
+
:rtype: Quaternion
|
|
1159
1191
|
"""
|
|
1160
1192
|
...
|
|
1161
1193
|
|
|
1162
|
-
def to_axis_angle(self) ->
|
|
1194
|
+
def to_axis_angle(self) -> Quaternion:
|
|
1163
1195
|
"""Return the axis, angle representation of the quaternion.
|
|
1164
1196
|
|
|
1165
|
-
:rtype: typing.Tuple['Vector', 'float']
|
|
1166
1197
|
:return: axis, angle.
|
|
1198
|
+
:rtype: typing.Tuple[Vector, float]
|
|
1167
1199
|
"""
|
|
1168
1200
|
...
|
|
1169
1201
|
|
|
1170
1202
|
def to_euler(
|
|
1171
|
-
self, order: str, euler_compat: typing.Union[typing.Sequence[float],
|
|
1172
|
-
) ->
|
|
1203
|
+
self, order: str, euler_compat: typing.Union[typing.Sequence[float], Euler]
|
|
1204
|
+
) -> typing.Union[typing.Sequence[float], Euler]:
|
|
1173
1205
|
"""Return Euler representation of the quaternion.
|
|
1174
1206
|
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1207
|
+
:param order: Optional rotation order argument in
|
|
1208
|
+
['XYZ', 'XZY', 'YXZ', 'YZX', 'ZXY', 'ZYX'].
|
|
1209
|
+
:type order: str
|
|
1210
|
+
:param euler_compat: Optional euler argument the new euler will be made
|
|
1211
|
+
compatible with (no axis flipping between them).
|
|
1212
|
+
Useful for converting a series of matrices to animation curves.
|
|
1213
|
+
:type euler_compat: typing.Union[typing.Sequence[float], Euler]
|
|
1214
|
+
:return: Euler representation of the quaternion.
|
|
1215
|
+
:rtype: Euler
|
|
1181
1216
|
"""
|
|
1182
1217
|
...
|
|
1183
1218
|
|
|
1184
|
-
def to_exponential_map(self) ->
|
|
1185
|
-
"""Return the exponential map representation of the quaternion.
|
|
1219
|
+
def to_exponential_map(self) -> Euler:
|
|
1220
|
+
"""Return the exponential map representation of the quaternion.This representation consist of the rotation axis multiplied by the rotation angle.
|
|
1221
|
+
Such a representation is useful for interpolation between multiple orientations.To convert back to a quaternion, pass it to the `Quaternion` constructor.
|
|
1186
1222
|
|
|
1187
|
-
|
|
1188
|
-
:return: exponential map.
|
|
1223
|
+
:return: exponential map.
|
|
1189
1224
|
"""
|
|
1190
1225
|
...
|
|
1191
1226
|
|
|
1192
|
-
def to_matrix(self)
|
|
1227
|
+
def to_matrix(self):
|
|
1193
1228
|
"""Return a matrix representation of the quaternion.
|
|
1194
1229
|
|
|
1195
|
-
:rtype: 'Matrix'
|
|
1196
1230
|
:return: A 3x3 rotation matrix representation of the quaternion.
|
|
1231
|
+
:rtype: Matrix
|
|
1197
1232
|
"""
|
|
1198
1233
|
...
|
|
1199
1234
|
|
|
1200
|
-
def to_swing_twist(self, axis
|
|
1201
|
-
"""Split the rotation into a swing quaternion with the specified
|
|
1235
|
+
def to_swing_twist(self, axis):
|
|
1236
|
+
"""Split the rotation into a swing quaternion with the specified
|
|
1237
|
+
axis fixed at zero, and the remaining twist rotation angle.
|
|
1202
1238
|
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
:return: swing, twist angle.
|
|
1239
|
+
:param axis: twist axis as a string in ['X', 'Y', 'Z']
|
|
1240
|
+
:return: swing, twist angle.
|
|
1241
|
+
:rtype: typing.Tuple[Quaternion, float]
|
|
1207
1242
|
"""
|
|
1208
1243
|
...
|
|
1209
1244
|
|
|
1210
|
-
def __init__(self, seq=(1.0, 0.0, 0.0, 0.0))
|
|
1245
|
+
def __init__(self, seq=(1.0, 0.0, 0.0, 0.0)):
|
|
1211
1246
|
"""
|
|
1212
1247
|
|
|
1213
|
-
:
|
|
1248
|
+
:param seq:
|
|
1214
1249
|
"""
|
|
1215
1250
|
...
|
|
1216
1251
|
|
|
1217
|
-
def __len__(self)
|
|
1252
|
+
def __len__(self):
|
|
1218
1253
|
"""
|
|
1219
1254
|
|
|
1255
|
+
:return:
|
|
1220
1256
|
:rtype: int
|
|
1221
1257
|
"""
|
|
1222
1258
|
...
|
|
1223
1259
|
|
|
1224
|
-
def __getitem__(self, key: int) ->
|
|
1260
|
+
def __getitem__(self, key: int) -> int:
|
|
1225
1261
|
"""
|
|
1226
1262
|
|
|
1227
1263
|
:param key:
|
|
1228
1264
|
:type key: int
|
|
1265
|
+
:return:
|
|
1229
1266
|
:rtype: float
|
|
1230
1267
|
"""
|
|
1231
1268
|
...
|
|
@@ -1237,125 +1274,138 @@ class Quaternion:
|
|
|
1237
1274
|
:type key: int
|
|
1238
1275
|
:param value:
|
|
1239
1276
|
:type value: float
|
|
1277
|
+
:return:
|
|
1240
1278
|
:rtype: float
|
|
1241
1279
|
"""
|
|
1242
1280
|
...
|
|
1243
1281
|
|
|
1244
1282
|
def __add__(
|
|
1245
|
-
self, other: typing.Union[typing.Sequence[float],
|
|
1246
|
-
) ->
|
|
1283
|
+
self, other: typing.Union[typing.Sequence[float], Quaternion]
|
|
1284
|
+
) -> typing.Union[typing.Sequence[float], Quaternion]:
|
|
1247
1285
|
"""
|
|
1248
1286
|
|
|
1249
1287
|
:param other:
|
|
1250
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
1251
|
-
:
|
|
1288
|
+
:type other: typing.Union[typing.Sequence[float], Quaternion]
|
|
1289
|
+
:return:
|
|
1290
|
+
:rtype: Quaternion
|
|
1252
1291
|
"""
|
|
1253
1292
|
...
|
|
1254
1293
|
|
|
1255
1294
|
def __sub__(
|
|
1256
|
-
self, other: typing.Union[typing.Sequence[float],
|
|
1257
|
-
) ->
|
|
1295
|
+
self, other: typing.Union[typing.Sequence[float], Quaternion]
|
|
1296
|
+
) -> typing.Union[typing.Sequence[float], Quaternion]:
|
|
1258
1297
|
"""
|
|
1259
1298
|
|
|
1260
1299
|
:param other:
|
|
1261
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
1262
|
-
:
|
|
1300
|
+
:type other: typing.Union[typing.Sequence[float], Quaternion]
|
|
1301
|
+
:return:
|
|
1302
|
+
:rtype: Quaternion
|
|
1263
1303
|
"""
|
|
1264
1304
|
...
|
|
1265
1305
|
|
|
1266
1306
|
def __mul__(
|
|
1267
|
-
self, other: typing.Union[int, float, typing.Sequence[float],
|
|
1268
|
-
) ->
|
|
1307
|
+
self, other: typing.Union[int, float, typing.Sequence[float], Quaternion]
|
|
1308
|
+
) -> typing.Union[int, float, typing.Sequence[float], Quaternion]:
|
|
1269
1309
|
"""
|
|
1270
1310
|
|
|
1271
1311
|
:param other:
|
|
1272
|
-
:type other: typing.Union[int, float, typing.Sequence[float],
|
|
1273
|
-
:
|
|
1312
|
+
:type other: typing.Union[int, float, typing.Sequence[float], Quaternion]
|
|
1313
|
+
:return:
|
|
1314
|
+
:rtype: Quaternion
|
|
1274
1315
|
"""
|
|
1275
1316
|
...
|
|
1276
1317
|
|
|
1277
1318
|
def __matmul__(
|
|
1278
1319
|
self,
|
|
1279
1320
|
other: typing.Union[
|
|
1280
|
-
typing.Sequence[float],
|
|
1321
|
+
typing.Sequence[float], Vector, typing.Sequence[float], Quaternion
|
|
1281
1322
|
],
|
|
1282
|
-
) -> typing.Union[
|
|
1323
|
+
) -> typing.Union[
|
|
1324
|
+
typing.Sequence[float], Vector, typing.Sequence[float], Quaternion
|
|
1325
|
+
]:
|
|
1283
1326
|
"""
|
|
1284
1327
|
|
|
1285
1328
|
:param other:
|
|
1286
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
1287
|
-
:
|
|
1329
|
+
:type other: typing.Union[typing.Sequence[float], Vector, typing.Sequence[float], Quaternion]
|
|
1330
|
+
:return:
|
|
1331
|
+
:rtype: typing.Union[Vector, Quaternion]
|
|
1288
1332
|
"""
|
|
1289
1333
|
...
|
|
1290
1334
|
|
|
1291
1335
|
def __radd__(
|
|
1292
|
-
self, other: typing.Union[typing.Sequence[float],
|
|
1293
|
-
) ->
|
|
1336
|
+
self, other: typing.Union[typing.Sequence[float], Quaternion]
|
|
1337
|
+
) -> typing.Union[typing.Sequence[float], Quaternion]:
|
|
1294
1338
|
"""
|
|
1295
1339
|
|
|
1296
1340
|
:param other:
|
|
1297
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
1298
|
-
:
|
|
1341
|
+
:type other: typing.Union[typing.Sequence[float], Quaternion]
|
|
1342
|
+
:return:
|
|
1343
|
+
:rtype: Quaternion
|
|
1299
1344
|
"""
|
|
1300
1345
|
...
|
|
1301
1346
|
|
|
1302
1347
|
def __rsub__(
|
|
1303
|
-
self, other: typing.Union[typing.Sequence[float],
|
|
1304
|
-
) ->
|
|
1348
|
+
self, other: typing.Union[typing.Sequence[float], Quaternion]
|
|
1349
|
+
) -> typing.Union[typing.Sequence[float], Quaternion]:
|
|
1305
1350
|
"""
|
|
1306
1351
|
|
|
1307
1352
|
:param other:
|
|
1308
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
1309
|
-
:
|
|
1353
|
+
:type other: typing.Union[typing.Sequence[float], Quaternion]
|
|
1354
|
+
:return:
|
|
1355
|
+
:rtype: Quaternion
|
|
1310
1356
|
"""
|
|
1311
1357
|
...
|
|
1312
1358
|
|
|
1313
1359
|
def __rmul__(
|
|
1314
|
-
self, other: typing.Union[int, float, typing.Sequence[float],
|
|
1315
|
-
) ->
|
|
1360
|
+
self, other: typing.Union[int, float, typing.Sequence[float], Quaternion]
|
|
1361
|
+
) -> typing.Union[int, float, typing.Sequence[float], Quaternion]:
|
|
1316
1362
|
"""
|
|
1317
1363
|
|
|
1318
1364
|
:param other:
|
|
1319
|
-
:type other: typing.Union[int, float, typing.Sequence[float],
|
|
1320
|
-
:
|
|
1365
|
+
:type other: typing.Union[int, float, typing.Sequence[float], Quaternion]
|
|
1366
|
+
:return:
|
|
1367
|
+
:rtype: Quaternion
|
|
1321
1368
|
"""
|
|
1322
1369
|
...
|
|
1323
1370
|
|
|
1324
1371
|
def __rmatmul__(
|
|
1325
|
-
self, other: typing.Union[typing.Sequence[float],
|
|
1326
|
-
) ->
|
|
1372
|
+
self, other: typing.Union[typing.Sequence[float], Vector]
|
|
1373
|
+
) -> typing.Union[typing.Sequence[float], Vector]:
|
|
1327
1374
|
"""
|
|
1328
1375
|
|
|
1329
1376
|
:param other:
|
|
1330
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
1331
|
-
:
|
|
1377
|
+
:type other: typing.Union[typing.Sequence[float], Vector]
|
|
1378
|
+
:return:
|
|
1379
|
+
:rtype: Vector
|
|
1332
1380
|
"""
|
|
1333
1381
|
...
|
|
1334
1382
|
|
|
1335
1383
|
def __imul__(
|
|
1336
|
-
self, other: typing.Union[int, float, typing.Sequence[float],
|
|
1337
|
-
) ->
|
|
1384
|
+
self, other: typing.Union[int, float, typing.Sequence[float], Quaternion]
|
|
1385
|
+
) -> typing.Union[int, float, typing.Sequence[float], Quaternion]:
|
|
1338
1386
|
"""
|
|
1339
1387
|
|
|
1340
1388
|
:param other:
|
|
1341
|
-
:type other: typing.Union[int, float, typing.Sequence[float],
|
|
1342
|
-
:
|
|
1389
|
+
:type other: typing.Union[int, float, typing.Sequence[float], Quaternion]
|
|
1390
|
+
:return:
|
|
1391
|
+
:rtype: Quaternion
|
|
1343
1392
|
"""
|
|
1344
1393
|
...
|
|
1345
1394
|
|
|
1346
1395
|
def __imatmul__(
|
|
1347
|
-
self, other: typing.Union[typing.Sequence[float],
|
|
1348
|
-
) ->
|
|
1396
|
+
self, other: typing.Union[typing.Sequence[float], Vector]
|
|
1397
|
+
) -> typing.Union[typing.Sequence[float], Vector]:
|
|
1349
1398
|
"""
|
|
1350
1399
|
|
|
1351
1400
|
:param other:
|
|
1352
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
1353
|
-
:
|
|
1401
|
+
:type other: typing.Union[typing.Sequence[float], Vector]
|
|
1402
|
+
:return:
|
|
1403
|
+
:rtype: Vector
|
|
1354
1404
|
"""
|
|
1355
1405
|
...
|
|
1356
1406
|
|
|
1357
1407
|
class Vector:
|
|
1358
|
-
"""This object gives access to Vectors in Blender.
|
|
1408
|
+
"""This object gives access to Vectors in Blender."""
|
|
1359
1409
|
|
|
1360
1410
|
is_frozen: bool
|
|
1361
1411
|
""" True when this object has been frozen (read-only).
|
|
@@ -1394,7 +1444,7 @@ class Vector:
|
|
|
1394
1444
|
"""
|
|
1395
1445
|
|
|
1396
1446
|
owner: typing.Any
|
|
1397
|
-
""" The item this is wrapping or None
|
|
1447
|
+
""" The item this is wrapping or None (read-only)."""
|
|
1398
1448
|
|
|
1399
1449
|
w: float
|
|
1400
1450
|
""" Vector W axis (4D Vectors only).
|
|
@@ -1403,256 +1453,256 @@ class Vector:
|
|
|
1403
1453
|
"""
|
|
1404
1454
|
|
|
1405
1455
|
ww: typing.Any
|
|
1406
|
-
""" Undocumented, consider
|
|
1456
|
+
""" Undocumented, consider contributing."""
|
|
1407
1457
|
|
|
1408
1458
|
www: typing.Any
|
|
1409
|
-
""" Undocumented, consider
|
|
1459
|
+
""" Undocumented, consider contributing."""
|
|
1410
1460
|
|
|
1411
1461
|
wwww: typing.Any
|
|
1412
|
-
""" Undocumented, consider
|
|
1462
|
+
""" Undocumented, consider contributing."""
|
|
1413
1463
|
|
|
1414
1464
|
wwwx: typing.Any
|
|
1415
|
-
""" Undocumented, consider
|
|
1465
|
+
""" Undocumented, consider contributing."""
|
|
1416
1466
|
|
|
1417
1467
|
wwwy: typing.Any
|
|
1418
|
-
""" Undocumented, consider
|
|
1468
|
+
""" Undocumented, consider contributing."""
|
|
1419
1469
|
|
|
1420
1470
|
wwwz: typing.Any
|
|
1421
|
-
""" Undocumented, consider
|
|
1471
|
+
""" Undocumented, consider contributing."""
|
|
1422
1472
|
|
|
1423
1473
|
wwx: typing.Any
|
|
1424
|
-
""" Undocumented, consider
|
|
1474
|
+
""" Undocumented, consider contributing."""
|
|
1425
1475
|
|
|
1426
1476
|
wwxw: typing.Any
|
|
1427
|
-
""" Undocumented, consider
|
|
1477
|
+
""" Undocumented, consider contributing."""
|
|
1428
1478
|
|
|
1429
1479
|
wwxx: typing.Any
|
|
1430
|
-
""" Undocumented, consider
|
|
1480
|
+
""" Undocumented, consider contributing."""
|
|
1431
1481
|
|
|
1432
1482
|
wwxy: typing.Any
|
|
1433
|
-
""" Undocumented, consider
|
|
1483
|
+
""" Undocumented, consider contributing."""
|
|
1434
1484
|
|
|
1435
1485
|
wwxz: typing.Any
|
|
1436
|
-
""" Undocumented, consider
|
|
1486
|
+
""" Undocumented, consider contributing."""
|
|
1437
1487
|
|
|
1438
1488
|
wwy: typing.Any
|
|
1439
|
-
""" Undocumented, consider
|
|
1489
|
+
""" Undocumented, consider contributing."""
|
|
1440
1490
|
|
|
1441
1491
|
wwyw: typing.Any
|
|
1442
|
-
""" Undocumented, consider
|
|
1492
|
+
""" Undocumented, consider contributing."""
|
|
1443
1493
|
|
|
1444
1494
|
wwyx: typing.Any
|
|
1445
|
-
""" Undocumented, consider
|
|
1495
|
+
""" Undocumented, consider contributing."""
|
|
1446
1496
|
|
|
1447
1497
|
wwyy: typing.Any
|
|
1448
|
-
""" Undocumented, consider
|
|
1498
|
+
""" Undocumented, consider contributing."""
|
|
1449
1499
|
|
|
1450
1500
|
wwyz: typing.Any
|
|
1451
|
-
""" Undocumented, consider
|
|
1501
|
+
""" Undocumented, consider contributing."""
|
|
1452
1502
|
|
|
1453
1503
|
wwz: typing.Any
|
|
1454
|
-
""" Undocumented, consider
|
|
1504
|
+
""" Undocumented, consider contributing."""
|
|
1455
1505
|
|
|
1456
1506
|
wwzw: typing.Any
|
|
1457
|
-
""" Undocumented, consider
|
|
1507
|
+
""" Undocumented, consider contributing."""
|
|
1458
1508
|
|
|
1459
1509
|
wwzx: typing.Any
|
|
1460
|
-
""" Undocumented, consider
|
|
1510
|
+
""" Undocumented, consider contributing."""
|
|
1461
1511
|
|
|
1462
1512
|
wwzy: typing.Any
|
|
1463
|
-
""" Undocumented, consider
|
|
1513
|
+
""" Undocumented, consider contributing."""
|
|
1464
1514
|
|
|
1465
1515
|
wwzz: typing.Any
|
|
1466
|
-
""" Undocumented, consider
|
|
1516
|
+
""" Undocumented, consider contributing."""
|
|
1467
1517
|
|
|
1468
1518
|
wx: typing.Any
|
|
1469
|
-
""" Undocumented, consider
|
|
1519
|
+
""" Undocumented, consider contributing."""
|
|
1470
1520
|
|
|
1471
1521
|
wxw: typing.Any
|
|
1472
|
-
""" Undocumented, consider
|
|
1522
|
+
""" Undocumented, consider contributing."""
|
|
1473
1523
|
|
|
1474
1524
|
wxww: typing.Any
|
|
1475
|
-
""" Undocumented, consider
|
|
1525
|
+
""" Undocumented, consider contributing."""
|
|
1476
1526
|
|
|
1477
1527
|
wxwx: typing.Any
|
|
1478
|
-
""" Undocumented, consider
|
|
1528
|
+
""" Undocumented, consider contributing."""
|
|
1479
1529
|
|
|
1480
1530
|
wxwy: typing.Any
|
|
1481
|
-
""" Undocumented, consider
|
|
1531
|
+
""" Undocumented, consider contributing."""
|
|
1482
1532
|
|
|
1483
1533
|
wxwz: typing.Any
|
|
1484
|
-
""" Undocumented, consider
|
|
1534
|
+
""" Undocumented, consider contributing."""
|
|
1485
1535
|
|
|
1486
1536
|
wxx: typing.Any
|
|
1487
|
-
""" Undocumented, consider
|
|
1537
|
+
""" Undocumented, consider contributing."""
|
|
1488
1538
|
|
|
1489
1539
|
wxxw: typing.Any
|
|
1490
|
-
""" Undocumented, consider
|
|
1540
|
+
""" Undocumented, consider contributing."""
|
|
1491
1541
|
|
|
1492
1542
|
wxxx: typing.Any
|
|
1493
|
-
""" Undocumented, consider
|
|
1543
|
+
""" Undocumented, consider contributing."""
|
|
1494
1544
|
|
|
1495
1545
|
wxxy: typing.Any
|
|
1496
|
-
""" Undocumented, consider
|
|
1546
|
+
""" Undocumented, consider contributing."""
|
|
1497
1547
|
|
|
1498
1548
|
wxxz: typing.Any
|
|
1499
|
-
""" Undocumented, consider
|
|
1549
|
+
""" Undocumented, consider contributing."""
|
|
1500
1550
|
|
|
1501
1551
|
wxy: typing.Any
|
|
1502
|
-
""" Undocumented, consider
|
|
1552
|
+
""" Undocumented, consider contributing."""
|
|
1503
1553
|
|
|
1504
1554
|
wxyw: typing.Any
|
|
1505
|
-
""" Undocumented, consider
|
|
1555
|
+
""" Undocumented, consider contributing."""
|
|
1506
1556
|
|
|
1507
1557
|
wxyx: typing.Any
|
|
1508
|
-
""" Undocumented, consider
|
|
1558
|
+
""" Undocumented, consider contributing."""
|
|
1509
1559
|
|
|
1510
1560
|
wxyy: typing.Any
|
|
1511
|
-
""" Undocumented, consider
|
|
1561
|
+
""" Undocumented, consider contributing."""
|
|
1512
1562
|
|
|
1513
1563
|
wxyz: typing.Any
|
|
1514
|
-
""" Undocumented, consider
|
|
1564
|
+
""" Undocumented, consider contributing."""
|
|
1515
1565
|
|
|
1516
1566
|
wxz: typing.Any
|
|
1517
|
-
""" Undocumented, consider
|
|
1567
|
+
""" Undocumented, consider contributing."""
|
|
1518
1568
|
|
|
1519
1569
|
wxzw: typing.Any
|
|
1520
|
-
""" Undocumented, consider
|
|
1570
|
+
""" Undocumented, consider contributing."""
|
|
1521
1571
|
|
|
1522
1572
|
wxzx: typing.Any
|
|
1523
|
-
""" Undocumented, consider
|
|
1573
|
+
""" Undocumented, consider contributing."""
|
|
1524
1574
|
|
|
1525
1575
|
wxzy: typing.Any
|
|
1526
|
-
""" Undocumented, consider
|
|
1576
|
+
""" Undocumented, consider contributing."""
|
|
1527
1577
|
|
|
1528
1578
|
wxzz: typing.Any
|
|
1529
|
-
""" Undocumented, consider
|
|
1579
|
+
""" Undocumented, consider contributing."""
|
|
1530
1580
|
|
|
1531
1581
|
wy: typing.Any
|
|
1532
|
-
""" Undocumented, consider
|
|
1582
|
+
""" Undocumented, consider contributing."""
|
|
1533
1583
|
|
|
1534
1584
|
wyw: typing.Any
|
|
1535
|
-
""" Undocumented, consider
|
|
1585
|
+
""" Undocumented, consider contributing."""
|
|
1536
1586
|
|
|
1537
1587
|
wyww: typing.Any
|
|
1538
|
-
""" Undocumented, consider
|
|
1588
|
+
""" Undocumented, consider contributing."""
|
|
1539
1589
|
|
|
1540
1590
|
wywx: typing.Any
|
|
1541
|
-
""" Undocumented, consider
|
|
1591
|
+
""" Undocumented, consider contributing."""
|
|
1542
1592
|
|
|
1543
1593
|
wywy: typing.Any
|
|
1544
|
-
""" Undocumented, consider
|
|
1594
|
+
""" Undocumented, consider contributing."""
|
|
1545
1595
|
|
|
1546
1596
|
wywz: typing.Any
|
|
1547
|
-
""" Undocumented, consider
|
|
1597
|
+
""" Undocumented, consider contributing."""
|
|
1548
1598
|
|
|
1549
1599
|
wyx: typing.Any
|
|
1550
|
-
""" Undocumented, consider
|
|
1600
|
+
""" Undocumented, consider contributing."""
|
|
1551
1601
|
|
|
1552
1602
|
wyxw: typing.Any
|
|
1553
|
-
""" Undocumented, consider
|
|
1603
|
+
""" Undocumented, consider contributing."""
|
|
1554
1604
|
|
|
1555
1605
|
wyxx: typing.Any
|
|
1556
|
-
""" Undocumented, consider
|
|
1606
|
+
""" Undocumented, consider contributing."""
|
|
1557
1607
|
|
|
1558
1608
|
wyxy: typing.Any
|
|
1559
|
-
""" Undocumented, consider
|
|
1609
|
+
""" Undocumented, consider contributing."""
|
|
1560
1610
|
|
|
1561
1611
|
wyxz: typing.Any
|
|
1562
|
-
""" Undocumented, consider
|
|
1612
|
+
""" Undocumented, consider contributing."""
|
|
1563
1613
|
|
|
1564
1614
|
wyy: typing.Any
|
|
1565
|
-
""" Undocumented, consider
|
|
1615
|
+
""" Undocumented, consider contributing."""
|
|
1566
1616
|
|
|
1567
1617
|
wyyw: typing.Any
|
|
1568
|
-
""" Undocumented, consider
|
|
1618
|
+
""" Undocumented, consider contributing."""
|
|
1569
1619
|
|
|
1570
1620
|
wyyx: typing.Any
|
|
1571
|
-
""" Undocumented, consider
|
|
1621
|
+
""" Undocumented, consider contributing."""
|
|
1572
1622
|
|
|
1573
1623
|
wyyy: typing.Any
|
|
1574
|
-
""" Undocumented, consider
|
|
1624
|
+
""" Undocumented, consider contributing."""
|
|
1575
1625
|
|
|
1576
1626
|
wyyz: typing.Any
|
|
1577
|
-
""" Undocumented, consider
|
|
1627
|
+
""" Undocumented, consider contributing."""
|
|
1578
1628
|
|
|
1579
1629
|
wyz: typing.Any
|
|
1580
|
-
""" Undocumented, consider
|
|
1630
|
+
""" Undocumented, consider contributing."""
|
|
1581
1631
|
|
|
1582
1632
|
wyzw: typing.Any
|
|
1583
|
-
""" Undocumented, consider
|
|
1633
|
+
""" Undocumented, consider contributing."""
|
|
1584
1634
|
|
|
1585
1635
|
wyzx: typing.Any
|
|
1586
|
-
""" Undocumented, consider
|
|
1636
|
+
""" Undocumented, consider contributing."""
|
|
1587
1637
|
|
|
1588
1638
|
wyzy: typing.Any
|
|
1589
|
-
""" Undocumented, consider
|
|
1639
|
+
""" Undocumented, consider contributing."""
|
|
1590
1640
|
|
|
1591
1641
|
wyzz: typing.Any
|
|
1592
|
-
""" Undocumented, consider
|
|
1642
|
+
""" Undocumented, consider contributing."""
|
|
1593
1643
|
|
|
1594
1644
|
wz: typing.Any
|
|
1595
|
-
""" Undocumented, consider
|
|
1645
|
+
""" Undocumented, consider contributing."""
|
|
1596
1646
|
|
|
1597
1647
|
wzw: typing.Any
|
|
1598
|
-
""" Undocumented, consider
|
|
1648
|
+
""" Undocumented, consider contributing."""
|
|
1599
1649
|
|
|
1600
1650
|
wzww: typing.Any
|
|
1601
|
-
""" Undocumented, consider
|
|
1651
|
+
""" Undocumented, consider contributing."""
|
|
1602
1652
|
|
|
1603
1653
|
wzwx: typing.Any
|
|
1604
|
-
""" Undocumented, consider
|
|
1654
|
+
""" Undocumented, consider contributing."""
|
|
1605
1655
|
|
|
1606
1656
|
wzwy: typing.Any
|
|
1607
|
-
""" Undocumented, consider
|
|
1657
|
+
""" Undocumented, consider contributing."""
|
|
1608
1658
|
|
|
1609
1659
|
wzwz: typing.Any
|
|
1610
|
-
""" Undocumented, consider
|
|
1660
|
+
""" Undocumented, consider contributing."""
|
|
1611
1661
|
|
|
1612
1662
|
wzx: typing.Any
|
|
1613
|
-
""" Undocumented, consider
|
|
1663
|
+
""" Undocumented, consider contributing."""
|
|
1614
1664
|
|
|
1615
1665
|
wzxw: typing.Any
|
|
1616
|
-
""" Undocumented, consider
|
|
1666
|
+
""" Undocumented, consider contributing."""
|
|
1617
1667
|
|
|
1618
1668
|
wzxx: typing.Any
|
|
1619
|
-
""" Undocumented, consider
|
|
1669
|
+
""" Undocumented, consider contributing."""
|
|
1620
1670
|
|
|
1621
1671
|
wzxy: typing.Any
|
|
1622
|
-
""" Undocumented, consider
|
|
1672
|
+
""" Undocumented, consider contributing."""
|
|
1623
1673
|
|
|
1624
1674
|
wzxz: typing.Any
|
|
1625
|
-
""" Undocumented, consider
|
|
1675
|
+
""" Undocumented, consider contributing."""
|
|
1626
1676
|
|
|
1627
1677
|
wzy: typing.Any
|
|
1628
|
-
""" Undocumented, consider
|
|
1678
|
+
""" Undocumented, consider contributing."""
|
|
1629
1679
|
|
|
1630
1680
|
wzyw: typing.Any
|
|
1631
|
-
""" Undocumented, consider
|
|
1681
|
+
""" Undocumented, consider contributing."""
|
|
1632
1682
|
|
|
1633
1683
|
wzyx: typing.Any
|
|
1634
|
-
""" Undocumented, consider
|
|
1684
|
+
""" Undocumented, consider contributing."""
|
|
1635
1685
|
|
|
1636
1686
|
wzyy: typing.Any
|
|
1637
|
-
""" Undocumented, consider
|
|
1687
|
+
""" Undocumented, consider contributing."""
|
|
1638
1688
|
|
|
1639
1689
|
wzyz: typing.Any
|
|
1640
|
-
""" Undocumented, consider
|
|
1690
|
+
""" Undocumented, consider contributing."""
|
|
1641
1691
|
|
|
1642
1692
|
wzz: typing.Any
|
|
1643
|
-
""" Undocumented, consider
|
|
1693
|
+
""" Undocumented, consider contributing."""
|
|
1644
1694
|
|
|
1645
1695
|
wzzw: typing.Any
|
|
1646
|
-
""" Undocumented, consider
|
|
1696
|
+
""" Undocumented, consider contributing."""
|
|
1647
1697
|
|
|
1648
1698
|
wzzx: typing.Any
|
|
1649
|
-
""" Undocumented, consider
|
|
1699
|
+
""" Undocumented, consider contributing."""
|
|
1650
1700
|
|
|
1651
1701
|
wzzy: typing.Any
|
|
1652
|
-
""" Undocumented, consider
|
|
1702
|
+
""" Undocumented, consider contributing."""
|
|
1653
1703
|
|
|
1654
1704
|
wzzz: typing.Any
|
|
1655
|
-
""" Undocumented, consider
|
|
1705
|
+
""" Undocumented, consider contributing."""
|
|
1656
1706
|
|
|
1657
1707
|
x: float
|
|
1658
1708
|
""" Vector X axis.
|
|
@@ -1661,256 +1711,256 @@ class Vector:
|
|
|
1661
1711
|
"""
|
|
1662
1712
|
|
|
1663
1713
|
xw: typing.Any
|
|
1664
|
-
""" Undocumented, consider
|
|
1714
|
+
""" Undocumented, consider contributing."""
|
|
1665
1715
|
|
|
1666
1716
|
xww: typing.Any
|
|
1667
|
-
""" Undocumented, consider
|
|
1717
|
+
""" Undocumented, consider contributing."""
|
|
1668
1718
|
|
|
1669
1719
|
xwww: typing.Any
|
|
1670
|
-
""" Undocumented, consider
|
|
1720
|
+
""" Undocumented, consider contributing."""
|
|
1671
1721
|
|
|
1672
1722
|
xwwx: typing.Any
|
|
1673
|
-
""" Undocumented, consider
|
|
1723
|
+
""" Undocumented, consider contributing."""
|
|
1674
1724
|
|
|
1675
1725
|
xwwy: typing.Any
|
|
1676
|
-
""" Undocumented, consider
|
|
1726
|
+
""" Undocumented, consider contributing."""
|
|
1677
1727
|
|
|
1678
1728
|
xwwz: typing.Any
|
|
1679
|
-
""" Undocumented, consider
|
|
1729
|
+
""" Undocumented, consider contributing."""
|
|
1680
1730
|
|
|
1681
1731
|
xwx: typing.Any
|
|
1682
|
-
""" Undocumented, consider
|
|
1732
|
+
""" Undocumented, consider contributing."""
|
|
1683
1733
|
|
|
1684
1734
|
xwxw: typing.Any
|
|
1685
|
-
""" Undocumented, consider
|
|
1735
|
+
""" Undocumented, consider contributing."""
|
|
1686
1736
|
|
|
1687
1737
|
xwxx: typing.Any
|
|
1688
|
-
""" Undocumented, consider
|
|
1738
|
+
""" Undocumented, consider contributing."""
|
|
1689
1739
|
|
|
1690
1740
|
xwxy: typing.Any
|
|
1691
|
-
""" Undocumented, consider
|
|
1741
|
+
""" Undocumented, consider contributing."""
|
|
1692
1742
|
|
|
1693
1743
|
xwxz: typing.Any
|
|
1694
|
-
""" Undocumented, consider
|
|
1744
|
+
""" Undocumented, consider contributing."""
|
|
1695
1745
|
|
|
1696
1746
|
xwy: typing.Any
|
|
1697
|
-
""" Undocumented, consider
|
|
1747
|
+
""" Undocumented, consider contributing."""
|
|
1698
1748
|
|
|
1699
1749
|
xwyw: typing.Any
|
|
1700
|
-
""" Undocumented, consider
|
|
1750
|
+
""" Undocumented, consider contributing."""
|
|
1701
1751
|
|
|
1702
1752
|
xwyx: typing.Any
|
|
1703
|
-
""" Undocumented, consider
|
|
1753
|
+
""" Undocumented, consider contributing."""
|
|
1704
1754
|
|
|
1705
1755
|
xwyy: typing.Any
|
|
1706
|
-
""" Undocumented, consider
|
|
1756
|
+
""" Undocumented, consider contributing."""
|
|
1707
1757
|
|
|
1708
1758
|
xwyz: typing.Any
|
|
1709
|
-
""" Undocumented, consider
|
|
1759
|
+
""" Undocumented, consider contributing."""
|
|
1710
1760
|
|
|
1711
1761
|
xwz: typing.Any
|
|
1712
|
-
""" Undocumented, consider
|
|
1762
|
+
""" Undocumented, consider contributing."""
|
|
1713
1763
|
|
|
1714
1764
|
xwzw: typing.Any
|
|
1715
|
-
""" Undocumented, consider
|
|
1765
|
+
""" Undocumented, consider contributing."""
|
|
1716
1766
|
|
|
1717
1767
|
xwzx: typing.Any
|
|
1718
|
-
""" Undocumented, consider
|
|
1768
|
+
""" Undocumented, consider contributing."""
|
|
1719
1769
|
|
|
1720
1770
|
xwzy: typing.Any
|
|
1721
|
-
""" Undocumented, consider
|
|
1771
|
+
""" Undocumented, consider contributing."""
|
|
1722
1772
|
|
|
1723
1773
|
xwzz: typing.Any
|
|
1724
|
-
""" Undocumented, consider
|
|
1774
|
+
""" Undocumented, consider contributing."""
|
|
1725
1775
|
|
|
1726
1776
|
xx: typing.Any
|
|
1727
|
-
""" Undocumented, consider
|
|
1777
|
+
""" Undocumented, consider contributing."""
|
|
1728
1778
|
|
|
1729
1779
|
xxw: typing.Any
|
|
1730
|
-
""" Undocumented, consider
|
|
1780
|
+
""" Undocumented, consider contributing."""
|
|
1731
1781
|
|
|
1732
1782
|
xxww: typing.Any
|
|
1733
|
-
""" Undocumented, consider
|
|
1783
|
+
""" Undocumented, consider contributing."""
|
|
1734
1784
|
|
|
1735
1785
|
xxwx: typing.Any
|
|
1736
|
-
""" Undocumented, consider
|
|
1786
|
+
""" Undocumented, consider contributing."""
|
|
1737
1787
|
|
|
1738
1788
|
xxwy: typing.Any
|
|
1739
|
-
""" Undocumented, consider
|
|
1789
|
+
""" Undocumented, consider contributing."""
|
|
1740
1790
|
|
|
1741
1791
|
xxwz: typing.Any
|
|
1742
|
-
""" Undocumented, consider
|
|
1792
|
+
""" Undocumented, consider contributing."""
|
|
1743
1793
|
|
|
1744
1794
|
xxx: typing.Any
|
|
1745
|
-
""" Undocumented, consider
|
|
1795
|
+
""" Undocumented, consider contributing."""
|
|
1746
1796
|
|
|
1747
1797
|
xxxw: typing.Any
|
|
1748
|
-
""" Undocumented, consider
|
|
1798
|
+
""" Undocumented, consider contributing."""
|
|
1749
1799
|
|
|
1750
1800
|
xxxx: typing.Any
|
|
1751
|
-
""" Undocumented, consider
|
|
1801
|
+
""" Undocumented, consider contributing."""
|
|
1752
1802
|
|
|
1753
1803
|
xxxy: typing.Any
|
|
1754
|
-
""" Undocumented, consider
|
|
1804
|
+
""" Undocumented, consider contributing."""
|
|
1755
1805
|
|
|
1756
1806
|
xxxz: typing.Any
|
|
1757
|
-
""" Undocumented, consider
|
|
1807
|
+
""" Undocumented, consider contributing."""
|
|
1758
1808
|
|
|
1759
1809
|
xxy: typing.Any
|
|
1760
|
-
""" Undocumented, consider
|
|
1810
|
+
""" Undocumented, consider contributing."""
|
|
1761
1811
|
|
|
1762
1812
|
xxyw: typing.Any
|
|
1763
|
-
""" Undocumented, consider
|
|
1813
|
+
""" Undocumented, consider contributing."""
|
|
1764
1814
|
|
|
1765
1815
|
xxyx: typing.Any
|
|
1766
|
-
""" Undocumented, consider
|
|
1816
|
+
""" Undocumented, consider contributing."""
|
|
1767
1817
|
|
|
1768
1818
|
xxyy: typing.Any
|
|
1769
|
-
""" Undocumented, consider
|
|
1819
|
+
""" Undocumented, consider contributing."""
|
|
1770
1820
|
|
|
1771
1821
|
xxyz: typing.Any
|
|
1772
|
-
""" Undocumented, consider
|
|
1822
|
+
""" Undocumented, consider contributing."""
|
|
1773
1823
|
|
|
1774
1824
|
xxz: typing.Any
|
|
1775
|
-
""" Undocumented, consider
|
|
1825
|
+
""" Undocumented, consider contributing."""
|
|
1776
1826
|
|
|
1777
1827
|
xxzw: typing.Any
|
|
1778
|
-
""" Undocumented, consider
|
|
1828
|
+
""" Undocumented, consider contributing."""
|
|
1779
1829
|
|
|
1780
1830
|
xxzx: typing.Any
|
|
1781
|
-
""" Undocumented, consider
|
|
1831
|
+
""" Undocumented, consider contributing."""
|
|
1782
1832
|
|
|
1783
1833
|
xxzy: typing.Any
|
|
1784
|
-
""" Undocumented, consider
|
|
1834
|
+
""" Undocumented, consider contributing."""
|
|
1785
1835
|
|
|
1786
1836
|
xxzz: typing.Any
|
|
1787
|
-
""" Undocumented, consider
|
|
1837
|
+
""" Undocumented, consider contributing."""
|
|
1788
1838
|
|
|
1789
1839
|
xy: typing.Any
|
|
1790
|
-
""" Undocumented, consider
|
|
1840
|
+
""" Undocumented, consider contributing."""
|
|
1791
1841
|
|
|
1792
1842
|
xyw: typing.Any
|
|
1793
|
-
""" Undocumented, consider
|
|
1843
|
+
""" Undocumented, consider contributing."""
|
|
1794
1844
|
|
|
1795
1845
|
xyww: typing.Any
|
|
1796
|
-
""" Undocumented, consider
|
|
1846
|
+
""" Undocumented, consider contributing."""
|
|
1797
1847
|
|
|
1798
1848
|
xywx: typing.Any
|
|
1799
|
-
""" Undocumented, consider
|
|
1849
|
+
""" Undocumented, consider contributing."""
|
|
1800
1850
|
|
|
1801
1851
|
xywy: typing.Any
|
|
1802
|
-
""" Undocumented, consider
|
|
1852
|
+
""" Undocumented, consider contributing."""
|
|
1803
1853
|
|
|
1804
1854
|
xywz: typing.Any
|
|
1805
|
-
""" Undocumented, consider
|
|
1855
|
+
""" Undocumented, consider contributing."""
|
|
1806
1856
|
|
|
1807
1857
|
xyx: typing.Any
|
|
1808
|
-
""" Undocumented, consider
|
|
1858
|
+
""" Undocumented, consider contributing."""
|
|
1809
1859
|
|
|
1810
1860
|
xyxw: typing.Any
|
|
1811
|
-
""" Undocumented, consider
|
|
1861
|
+
""" Undocumented, consider contributing."""
|
|
1812
1862
|
|
|
1813
1863
|
xyxx: typing.Any
|
|
1814
|
-
""" Undocumented, consider
|
|
1864
|
+
""" Undocumented, consider contributing."""
|
|
1815
1865
|
|
|
1816
1866
|
xyxy: typing.Any
|
|
1817
|
-
""" Undocumented, consider
|
|
1867
|
+
""" Undocumented, consider contributing."""
|
|
1818
1868
|
|
|
1819
1869
|
xyxz: typing.Any
|
|
1820
|
-
""" Undocumented, consider
|
|
1870
|
+
""" Undocumented, consider contributing."""
|
|
1821
1871
|
|
|
1822
1872
|
xyy: typing.Any
|
|
1823
|
-
""" Undocumented, consider
|
|
1873
|
+
""" Undocumented, consider contributing."""
|
|
1824
1874
|
|
|
1825
1875
|
xyyw: typing.Any
|
|
1826
|
-
""" Undocumented, consider
|
|
1876
|
+
""" Undocumented, consider contributing."""
|
|
1827
1877
|
|
|
1828
1878
|
xyyx: typing.Any
|
|
1829
|
-
""" Undocumented, consider
|
|
1879
|
+
""" Undocumented, consider contributing."""
|
|
1830
1880
|
|
|
1831
1881
|
xyyy: typing.Any
|
|
1832
|
-
""" Undocumented, consider
|
|
1882
|
+
""" Undocumented, consider contributing."""
|
|
1833
1883
|
|
|
1834
1884
|
xyyz: typing.Any
|
|
1835
|
-
""" Undocumented, consider
|
|
1885
|
+
""" Undocumented, consider contributing."""
|
|
1836
1886
|
|
|
1837
1887
|
xyz: typing.Any
|
|
1838
|
-
""" Undocumented, consider
|
|
1888
|
+
""" Undocumented, consider contributing."""
|
|
1839
1889
|
|
|
1840
1890
|
xyzw: typing.Any
|
|
1841
|
-
""" Undocumented, consider
|
|
1891
|
+
""" Undocumented, consider contributing."""
|
|
1842
1892
|
|
|
1843
1893
|
xyzx: typing.Any
|
|
1844
|
-
""" Undocumented, consider
|
|
1894
|
+
""" Undocumented, consider contributing."""
|
|
1845
1895
|
|
|
1846
1896
|
xyzy: typing.Any
|
|
1847
|
-
""" Undocumented, consider
|
|
1897
|
+
""" Undocumented, consider contributing."""
|
|
1848
1898
|
|
|
1849
1899
|
xyzz: typing.Any
|
|
1850
|
-
""" Undocumented, consider
|
|
1900
|
+
""" Undocumented, consider contributing."""
|
|
1851
1901
|
|
|
1852
1902
|
xz: typing.Any
|
|
1853
|
-
""" Undocumented, consider
|
|
1903
|
+
""" Undocumented, consider contributing."""
|
|
1854
1904
|
|
|
1855
1905
|
xzw: typing.Any
|
|
1856
|
-
""" Undocumented, consider
|
|
1906
|
+
""" Undocumented, consider contributing."""
|
|
1857
1907
|
|
|
1858
1908
|
xzww: typing.Any
|
|
1859
|
-
""" Undocumented, consider
|
|
1909
|
+
""" Undocumented, consider contributing."""
|
|
1860
1910
|
|
|
1861
1911
|
xzwx: typing.Any
|
|
1862
|
-
""" Undocumented, consider
|
|
1912
|
+
""" Undocumented, consider contributing."""
|
|
1863
1913
|
|
|
1864
1914
|
xzwy: typing.Any
|
|
1865
|
-
""" Undocumented, consider
|
|
1915
|
+
""" Undocumented, consider contributing."""
|
|
1866
1916
|
|
|
1867
1917
|
xzwz: typing.Any
|
|
1868
|
-
""" Undocumented, consider
|
|
1918
|
+
""" Undocumented, consider contributing."""
|
|
1869
1919
|
|
|
1870
1920
|
xzx: typing.Any
|
|
1871
|
-
""" Undocumented, consider
|
|
1921
|
+
""" Undocumented, consider contributing."""
|
|
1872
1922
|
|
|
1873
1923
|
xzxw: typing.Any
|
|
1874
|
-
""" Undocumented, consider
|
|
1924
|
+
""" Undocumented, consider contributing."""
|
|
1875
1925
|
|
|
1876
1926
|
xzxx: typing.Any
|
|
1877
|
-
""" Undocumented, consider
|
|
1927
|
+
""" Undocumented, consider contributing."""
|
|
1878
1928
|
|
|
1879
1929
|
xzxy: typing.Any
|
|
1880
|
-
""" Undocumented, consider
|
|
1930
|
+
""" Undocumented, consider contributing."""
|
|
1881
1931
|
|
|
1882
1932
|
xzxz: typing.Any
|
|
1883
|
-
""" Undocumented, consider
|
|
1933
|
+
""" Undocumented, consider contributing."""
|
|
1884
1934
|
|
|
1885
1935
|
xzy: typing.Any
|
|
1886
|
-
""" Undocumented, consider
|
|
1936
|
+
""" Undocumented, consider contributing."""
|
|
1887
1937
|
|
|
1888
1938
|
xzyw: typing.Any
|
|
1889
|
-
""" Undocumented, consider
|
|
1939
|
+
""" Undocumented, consider contributing."""
|
|
1890
1940
|
|
|
1891
1941
|
xzyx: typing.Any
|
|
1892
|
-
""" Undocumented, consider
|
|
1942
|
+
""" Undocumented, consider contributing."""
|
|
1893
1943
|
|
|
1894
1944
|
xzyy: typing.Any
|
|
1895
|
-
""" Undocumented, consider
|
|
1945
|
+
""" Undocumented, consider contributing."""
|
|
1896
1946
|
|
|
1897
1947
|
xzyz: typing.Any
|
|
1898
|
-
""" Undocumented, consider
|
|
1948
|
+
""" Undocumented, consider contributing."""
|
|
1899
1949
|
|
|
1900
1950
|
xzz: typing.Any
|
|
1901
|
-
""" Undocumented, consider
|
|
1951
|
+
""" Undocumented, consider contributing."""
|
|
1902
1952
|
|
|
1903
1953
|
xzzw: typing.Any
|
|
1904
|
-
""" Undocumented, consider
|
|
1954
|
+
""" Undocumented, consider contributing."""
|
|
1905
1955
|
|
|
1906
1956
|
xzzx: typing.Any
|
|
1907
|
-
""" Undocumented, consider
|
|
1957
|
+
""" Undocumented, consider contributing."""
|
|
1908
1958
|
|
|
1909
1959
|
xzzy: typing.Any
|
|
1910
|
-
""" Undocumented, consider
|
|
1960
|
+
""" Undocumented, consider contributing."""
|
|
1911
1961
|
|
|
1912
1962
|
xzzz: typing.Any
|
|
1913
|
-
""" Undocumented, consider
|
|
1963
|
+
""" Undocumented, consider contributing."""
|
|
1914
1964
|
|
|
1915
1965
|
y: float
|
|
1916
1966
|
""" Vector Y axis.
|
|
@@ -1919,256 +1969,256 @@ class Vector:
|
|
|
1919
1969
|
"""
|
|
1920
1970
|
|
|
1921
1971
|
yw: typing.Any
|
|
1922
|
-
""" Undocumented, consider
|
|
1972
|
+
""" Undocumented, consider contributing."""
|
|
1923
1973
|
|
|
1924
1974
|
yww: typing.Any
|
|
1925
|
-
""" Undocumented, consider
|
|
1975
|
+
""" Undocumented, consider contributing."""
|
|
1926
1976
|
|
|
1927
1977
|
ywww: typing.Any
|
|
1928
|
-
""" Undocumented, consider
|
|
1978
|
+
""" Undocumented, consider contributing."""
|
|
1929
1979
|
|
|
1930
1980
|
ywwx: typing.Any
|
|
1931
|
-
""" Undocumented, consider
|
|
1981
|
+
""" Undocumented, consider contributing."""
|
|
1932
1982
|
|
|
1933
1983
|
ywwy: typing.Any
|
|
1934
|
-
""" Undocumented, consider
|
|
1984
|
+
""" Undocumented, consider contributing."""
|
|
1935
1985
|
|
|
1936
1986
|
ywwz: typing.Any
|
|
1937
|
-
""" Undocumented, consider
|
|
1987
|
+
""" Undocumented, consider contributing."""
|
|
1938
1988
|
|
|
1939
1989
|
ywx: typing.Any
|
|
1940
|
-
""" Undocumented, consider
|
|
1990
|
+
""" Undocumented, consider contributing."""
|
|
1941
1991
|
|
|
1942
1992
|
ywxw: typing.Any
|
|
1943
|
-
""" Undocumented, consider
|
|
1993
|
+
""" Undocumented, consider contributing."""
|
|
1944
1994
|
|
|
1945
1995
|
ywxx: typing.Any
|
|
1946
|
-
""" Undocumented, consider
|
|
1996
|
+
""" Undocumented, consider contributing."""
|
|
1947
1997
|
|
|
1948
1998
|
ywxy: typing.Any
|
|
1949
|
-
""" Undocumented, consider
|
|
1999
|
+
""" Undocumented, consider contributing."""
|
|
1950
2000
|
|
|
1951
2001
|
ywxz: typing.Any
|
|
1952
|
-
""" Undocumented, consider
|
|
2002
|
+
""" Undocumented, consider contributing."""
|
|
1953
2003
|
|
|
1954
2004
|
ywy: typing.Any
|
|
1955
|
-
""" Undocumented, consider
|
|
2005
|
+
""" Undocumented, consider contributing."""
|
|
1956
2006
|
|
|
1957
2007
|
ywyw: typing.Any
|
|
1958
|
-
""" Undocumented, consider
|
|
2008
|
+
""" Undocumented, consider contributing."""
|
|
1959
2009
|
|
|
1960
2010
|
ywyx: typing.Any
|
|
1961
|
-
""" Undocumented, consider
|
|
2011
|
+
""" Undocumented, consider contributing."""
|
|
1962
2012
|
|
|
1963
2013
|
ywyy: typing.Any
|
|
1964
|
-
""" Undocumented, consider
|
|
2014
|
+
""" Undocumented, consider contributing."""
|
|
1965
2015
|
|
|
1966
2016
|
ywyz: typing.Any
|
|
1967
|
-
""" Undocumented, consider
|
|
2017
|
+
""" Undocumented, consider contributing."""
|
|
1968
2018
|
|
|
1969
2019
|
ywz: typing.Any
|
|
1970
|
-
""" Undocumented, consider
|
|
2020
|
+
""" Undocumented, consider contributing."""
|
|
1971
2021
|
|
|
1972
2022
|
ywzw: typing.Any
|
|
1973
|
-
""" Undocumented, consider
|
|
2023
|
+
""" Undocumented, consider contributing."""
|
|
1974
2024
|
|
|
1975
2025
|
ywzx: typing.Any
|
|
1976
|
-
""" Undocumented, consider
|
|
2026
|
+
""" Undocumented, consider contributing."""
|
|
1977
2027
|
|
|
1978
2028
|
ywzy: typing.Any
|
|
1979
|
-
""" Undocumented, consider
|
|
2029
|
+
""" Undocumented, consider contributing."""
|
|
1980
2030
|
|
|
1981
2031
|
ywzz: typing.Any
|
|
1982
|
-
""" Undocumented, consider
|
|
2032
|
+
""" Undocumented, consider contributing."""
|
|
1983
2033
|
|
|
1984
2034
|
yx: typing.Any
|
|
1985
|
-
""" Undocumented, consider
|
|
2035
|
+
""" Undocumented, consider contributing."""
|
|
1986
2036
|
|
|
1987
2037
|
yxw: typing.Any
|
|
1988
|
-
""" Undocumented, consider
|
|
2038
|
+
""" Undocumented, consider contributing."""
|
|
1989
2039
|
|
|
1990
2040
|
yxww: typing.Any
|
|
1991
|
-
""" Undocumented, consider
|
|
2041
|
+
""" Undocumented, consider contributing."""
|
|
1992
2042
|
|
|
1993
2043
|
yxwx: typing.Any
|
|
1994
|
-
""" Undocumented, consider
|
|
2044
|
+
""" Undocumented, consider contributing."""
|
|
1995
2045
|
|
|
1996
2046
|
yxwy: typing.Any
|
|
1997
|
-
""" Undocumented, consider
|
|
2047
|
+
""" Undocumented, consider contributing."""
|
|
1998
2048
|
|
|
1999
2049
|
yxwz: typing.Any
|
|
2000
|
-
""" Undocumented, consider
|
|
2050
|
+
""" Undocumented, consider contributing."""
|
|
2001
2051
|
|
|
2002
2052
|
yxx: typing.Any
|
|
2003
|
-
""" Undocumented, consider
|
|
2053
|
+
""" Undocumented, consider contributing."""
|
|
2004
2054
|
|
|
2005
2055
|
yxxw: typing.Any
|
|
2006
|
-
""" Undocumented, consider
|
|
2056
|
+
""" Undocumented, consider contributing."""
|
|
2007
2057
|
|
|
2008
2058
|
yxxx: typing.Any
|
|
2009
|
-
""" Undocumented, consider
|
|
2059
|
+
""" Undocumented, consider contributing."""
|
|
2010
2060
|
|
|
2011
2061
|
yxxy: typing.Any
|
|
2012
|
-
""" Undocumented, consider
|
|
2062
|
+
""" Undocumented, consider contributing."""
|
|
2013
2063
|
|
|
2014
2064
|
yxxz: typing.Any
|
|
2015
|
-
""" Undocumented, consider
|
|
2065
|
+
""" Undocumented, consider contributing."""
|
|
2016
2066
|
|
|
2017
2067
|
yxy: typing.Any
|
|
2018
|
-
""" Undocumented, consider
|
|
2068
|
+
""" Undocumented, consider contributing."""
|
|
2019
2069
|
|
|
2020
2070
|
yxyw: typing.Any
|
|
2021
|
-
""" Undocumented, consider
|
|
2071
|
+
""" Undocumented, consider contributing."""
|
|
2022
2072
|
|
|
2023
2073
|
yxyx: typing.Any
|
|
2024
|
-
""" Undocumented, consider
|
|
2074
|
+
""" Undocumented, consider contributing."""
|
|
2025
2075
|
|
|
2026
2076
|
yxyy: typing.Any
|
|
2027
|
-
""" Undocumented, consider
|
|
2077
|
+
""" Undocumented, consider contributing."""
|
|
2028
2078
|
|
|
2029
2079
|
yxyz: typing.Any
|
|
2030
|
-
""" Undocumented, consider
|
|
2080
|
+
""" Undocumented, consider contributing."""
|
|
2031
2081
|
|
|
2032
2082
|
yxz: typing.Any
|
|
2033
|
-
""" Undocumented, consider
|
|
2083
|
+
""" Undocumented, consider contributing."""
|
|
2034
2084
|
|
|
2035
2085
|
yxzw: typing.Any
|
|
2036
|
-
""" Undocumented, consider
|
|
2086
|
+
""" Undocumented, consider contributing."""
|
|
2037
2087
|
|
|
2038
2088
|
yxzx: typing.Any
|
|
2039
|
-
""" Undocumented, consider
|
|
2089
|
+
""" Undocumented, consider contributing."""
|
|
2040
2090
|
|
|
2041
2091
|
yxzy: typing.Any
|
|
2042
|
-
""" Undocumented, consider
|
|
2092
|
+
""" Undocumented, consider contributing."""
|
|
2043
2093
|
|
|
2044
2094
|
yxzz: typing.Any
|
|
2045
|
-
""" Undocumented, consider
|
|
2095
|
+
""" Undocumented, consider contributing."""
|
|
2046
2096
|
|
|
2047
2097
|
yy: typing.Any
|
|
2048
|
-
""" Undocumented, consider
|
|
2098
|
+
""" Undocumented, consider contributing."""
|
|
2049
2099
|
|
|
2050
2100
|
yyw: typing.Any
|
|
2051
|
-
""" Undocumented, consider
|
|
2101
|
+
""" Undocumented, consider contributing."""
|
|
2052
2102
|
|
|
2053
2103
|
yyww: typing.Any
|
|
2054
|
-
""" Undocumented, consider
|
|
2104
|
+
""" Undocumented, consider contributing."""
|
|
2055
2105
|
|
|
2056
2106
|
yywx: typing.Any
|
|
2057
|
-
""" Undocumented, consider
|
|
2107
|
+
""" Undocumented, consider contributing."""
|
|
2058
2108
|
|
|
2059
2109
|
yywy: typing.Any
|
|
2060
|
-
""" Undocumented, consider
|
|
2110
|
+
""" Undocumented, consider contributing."""
|
|
2061
2111
|
|
|
2062
2112
|
yywz: typing.Any
|
|
2063
|
-
""" Undocumented, consider
|
|
2113
|
+
""" Undocumented, consider contributing."""
|
|
2064
2114
|
|
|
2065
2115
|
yyx: typing.Any
|
|
2066
|
-
""" Undocumented, consider
|
|
2116
|
+
""" Undocumented, consider contributing."""
|
|
2067
2117
|
|
|
2068
2118
|
yyxw: typing.Any
|
|
2069
|
-
""" Undocumented, consider
|
|
2119
|
+
""" Undocumented, consider contributing."""
|
|
2070
2120
|
|
|
2071
2121
|
yyxx: typing.Any
|
|
2072
|
-
""" Undocumented, consider
|
|
2122
|
+
""" Undocumented, consider contributing."""
|
|
2073
2123
|
|
|
2074
2124
|
yyxy: typing.Any
|
|
2075
|
-
""" Undocumented, consider
|
|
2125
|
+
""" Undocumented, consider contributing."""
|
|
2076
2126
|
|
|
2077
2127
|
yyxz: typing.Any
|
|
2078
|
-
""" Undocumented, consider
|
|
2128
|
+
""" Undocumented, consider contributing."""
|
|
2079
2129
|
|
|
2080
2130
|
yyy: typing.Any
|
|
2081
|
-
""" Undocumented, consider
|
|
2131
|
+
""" Undocumented, consider contributing."""
|
|
2082
2132
|
|
|
2083
2133
|
yyyw: typing.Any
|
|
2084
|
-
""" Undocumented, consider
|
|
2134
|
+
""" Undocumented, consider contributing."""
|
|
2085
2135
|
|
|
2086
2136
|
yyyx: typing.Any
|
|
2087
|
-
""" Undocumented, consider
|
|
2137
|
+
""" Undocumented, consider contributing."""
|
|
2088
2138
|
|
|
2089
2139
|
yyyy: typing.Any
|
|
2090
|
-
""" Undocumented, consider
|
|
2140
|
+
""" Undocumented, consider contributing."""
|
|
2091
2141
|
|
|
2092
2142
|
yyyz: typing.Any
|
|
2093
|
-
""" Undocumented, consider
|
|
2143
|
+
""" Undocumented, consider contributing."""
|
|
2094
2144
|
|
|
2095
2145
|
yyz: typing.Any
|
|
2096
|
-
""" Undocumented, consider
|
|
2146
|
+
""" Undocumented, consider contributing."""
|
|
2097
2147
|
|
|
2098
2148
|
yyzw: typing.Any
|
|
2099
|
-
""" Undocumented, consider
|
|
2149
|
+
""" Undocumented, consider contributing."""
|
|
2100
2150
|
|
|
2101
2151
|
yyzx: typing.Any
|
|
2102
|
-
""" Undocumented, consider
|
|
2152
|
+
""" Undocumented, consider contributing."""
|
|
2103
2153
|
|
|
2104
2154
|
yyzy: typing.Any
|
|
2105
|
-
""" Undocumented, consider
|
|
2155
|
+
""" Undocumented, consider contributing."""
|
|
2106
2156
|
|
|
2107
2157
|
yyzz: typing.Any
|
|
2108
|
-
""" Undocumented, consider
|
|
2158
|
+
""" Undocumented, consider contributing."""
|
|
2109
2159
|
|
|
2110
2160
|
yz: typing.Any
|
|
2111
|
-
""" Undocumented, consider
|
|
2161
|
+
""" Undocumented, consider contributing."""
|
|
2112
2162
|
|
|
2113
2163
|
yzw: typing.Any
|
|
2114
|
-
""" Undocumented, consider
|
|
2164
|
+
""" Undocumented, consider contributing."""
|
|
2115
2165
|
|
|
2116
2166
|
yzww: typing.Any
|
|
2117
|
-
""" Undocumented, consider
|
|
2167
|
+
""" Undocumented, consider contributing."""
|
|
2118
2168
|
|
|
2119
2169
|
yzwx: typing.Any
|
|
2120
|
-
""" Undocumented, consider
|
|
2170
|
+
""" Undocumented, consider contributing."""
|
|
2121
2171
|
|
|
2122
2172
|
yzwy: typing.Any
|
|
2123
|
-
""" Undocumented, consider
|
|
2173
|
+
""" Undocumented, consider contributing."""
|
|
2124
2174
|
|
|
2125
2175
|
yzwz: typing.Any
|
|
2126
|
-
""" Undocumented, consider
|
|
2176
|
+
""" Undocumented, consider contributing."""
|
|
2127
2177
|
|
|
2128
2178
|
yzx: typing.Any
|
|
2129
|
-
""" Undocumented, consider
|
|
2179
|
+
""" Undocumented, consider contributing."""
|
|
2130
2180
|
|
|
2131
2181
|
yzxw: typing.Any
|
|
2132
|
-
""" Undocumented, consider
|
|
2182
|
+
""" Undocumented, consider contributing."""
|
|
2133
2183
|
|
|
2134
2184
|
yzxx: typing.Any
|
|
2135
|
-
""" Undocumented, consider
|
|
2185
|
+
""" Undocumented, consider contributing."""
|
|
2136
2186
|
|
|
2137
2187
|
yzxy: typing.Any
|
|
2138
|
-
""" Undocumented, consider
|
|
2188
|
+
""" Undocumented, consider contributing."""
|
|
2139
2189
|
|
|
2140
2190
|
yzxz: typing.Any
|
|
2141
|
-
""" Undocumented, consider
|
|
2191
|
+
""" Undocumented, consider contributing."""
|
|
2142
2192
|
|
|
2143
2193
|
yzy: typing.Any
|
|
2144
|
-
""" Undocumented, consider
|
|
2194
|
+
""" Undocumented, consider contributing."""
|
|
2145
2195
|
|
|
2146
2196
|
yzyw: typing.Any
|
|
2147
|
-
""" Undocumented, consider
|
|
2197
|
+
""" Undocumented, consider contributing."""
|
|
2148
2198
|
|
|
2149
2199
|
yzyx: typing.Any
|
|
2150
|
-
""" Undocumented, consider
|
|
2200
|
+
""" Undocumented, consider contributing."""
|
|
2151
2201
|
|
|
2152
2202
|
yzyy: typing.Any
|
|
2153
|
-
""" Undocumented, consider
|
|
2203
|
+
""" Undocumented, consider contributing."""
|
|
2154
2204
|
|
|
2155
2205
|
yzyz: typing.Any
|
|
2156
|
-
""" Undocumented, consider
|
|
2206
|
+
""" Undocumented, consider contributing."""
|
|
2157
2207
|
|
|
2158
2208
|
yzz: typing.Any
|
|
2159
|
-
""" Undocumented, consider
|
|
2209
|
+
""" Undocumented, consider contributing."""
|
|
2160
2210
|
|
|
2161
2211
|
yzzw: typing.Any
|
|
2162
|
-
""" Undocumented, consider
|
|
2212
|
+
""" Undocumented, consider contributing."""
|
|
2163
2213
|
|
|
2164
2214
|
yzzx: typing.Any
|
|
2165
|
-
""" Undocumented, consider
|
|
2215
|
+
""" Undocumented, consider contributing."""
|
|
2166
2216
|
|
|
2167
2217
|
yzzy: typing.Any
|
|
2168
|
-
""" Undocumented, consider
|
|
2218
|
+
""" Undocumented, consider contributing."""
|
|
2169
2219
|
|
|
2170
2220
|
yzzz: typing.Any
|
|
2171
|
-
""" Undocumented, consider
|
|
2221
|
+
""" Undocumented, consider contributing."""
|
|
2172
2222
|
|
|
2173
2223
|
z: float
|
|
2174
2224
|
""" Vector Z axis (3D Vectors only).
|
|
@@ -2177,256 +2227,256 @@ class Vector:
|
|
|
2177
2227
|
"""
|
|
2178
2228
|
|
|
2179
2229
|
zw: typing.Any
|
|
2180
|
-
""" Undocumented, consider
|
|
2230
|
+
""" Undocumented, consider contributing."""
|
|
2181
2231
|
|
|
2182
2232
|
zww: typing.Any
|
|
2183
|
-
""" Undocumented, consider
|
|
2233
|
+
""" Undocumented, consider contributing."""
|
|
2184
2234
|
|
|
2185
2235
|
zwww: typing.Any
|
|
2186
|
-
""" Undocumented, consider
|
|
2236
|
+
""" Undocumented, consider contributing."""
|
|
2187
2237
|
|
|
2188
2238
|
zwwx: typing.Any
|
|
2189
|
-
""" Undocumented, consider
|
|
2239
|
+
""" Undocumented, consider contributing."""
|
|
2190
2240
|
|
|
2191
2241
|
zwwy: typing.Any
|
|
2192
|
-
""" Undocumented, consider
|
|
2242
|
+
""" Undocumented, consider contributing."""
|
|
2193
2243
|
|
|
2194
2244
|
zwwz: typing.Any
|
|
2195
|
-
""" Undocumented, consider
|
|
2245
|
+
""" Undocumented, consider contributing."""
|
|
2196
2246
|
|
|
2197
2247
|
zwx: typing.Any
|
|
2198
|
-
""" Undocumented, consider
|
|
2248
|
+
""" Undocumented, consider contributing."""
|
|
2199
2249
|
|
|
2200
2250
|
zwxw: typing.Any
|
|
2201
|
-
""" Undocumented, consider
|
|
2251
|
+
""" Undocumented, consider contributing."""
|
|
2202
2252
|
|
|
2203
2253
|
zwxx: typing.Any
|
|
2204
|
-
""" Undocumented, consider
|
|
2254
|
+
""" Undocumented, consider contributing."""
|
|
2205
2255
|
|
|
2206
2256
|
zwxy: typing.Any
|
|
2207
|
-
""" Undocumented, consider
|
|
2257
|
+
""" Undocumented, consider contributing."""
|
|
2208
2258
|
|
|
2209
2259
|
zwxz: typing.Any
|
|
2210
|
-
""" Undocumented, consider
|
|
2260
|
+
""" Undocumented, consider contributing."""
|
|
2211
2261
|
|
|
2212
2262
|
zwy: typing.Any
|
|
2213
|
-
""" Undocumented, consider
|
|
2263
|
+
""" Undocumented, consider contributing."""
|
|
2214
2264
|
|
|
2215
2265
|
zwyw: typing.Any
|
|
2216
|
-
""" Undocumented, consider
|
|
2266
|
+
""" Undocumented, consider contributing."""
|
|
2217
2267
|
|
|
2218
2268
|
zwyx: typing.Any
|
|
2219
|
-
""" Undocumented, consider
|
|
2269
|
+
""" Undocumented, consider contributing."""
|
|
2220
2270
|
|
|
2221
2271
|
zwyy: typing.Any
|
|
2222
|
-
""" Undocumented, consider
|
|
2272
|
+
""" Undocumented, consider contributing."""
|
|
2223
2273
|
|
|
2224
2274
|
zwyz: typing.Any
|
|
2225
|
-
""" Undocumented, consider
|
|
2275
|
+
""" Undocumented, consider contributing."""
|
|
2226
2276
|
|
|
2227
2277
|
zwz: typing.Any
|
|
2228
|
-
""" Undocumented, consider
|
|
2278
|
+
""" Undocumented, consider contributing."""
|
|
2229
2279
|
|
|
2230
2280
|
zwzw: typing.Any
|
|
2231
|
-
""" Undocumented, consider
|
|
2281
|
+
""" Undocumented, consider contributing."""
|
|
2232
2282
|
|
|
2233
2283
|
zwzx: typing.Any
|
|
2234
|
-
""" Undocumented, consider
|
|
2284
|
+
""" Undocumented, consider contributing."""
|
|
2235
2285
|
|
|
2236
2286
|
zwzy: typing.Any
|
|
2237
|
-
""" Undocumented, consider
|
|
2287
|
+
""" Undocumented, consider contributing."""
|
|
2238
2288
|
|
|
2239
2289
|
zwzz: typing.Any
|
|
2240
|
-
""" Undocumented, consider
|
|
2290
|
+
""" Undocumented, consider contributing."""
|
|
2241
2291
|
|
|
2242
2292
|
zx: typing.Any
|
|
2243
|
-
""" Undocumented, consider
|
|
2293
|
+
""" Undocumented, consider contributing."""
|
|
2244
2294
|
|
|
2245
2295
|
zxw: typing.Any
|
|
2246
|
-
""" Undocumented, consider
|
|
2296
|
+
""" Undocumented, consider contributing."""
|
|
2247
2297
|
|
|
2248
2298
|
zxww: typing.Any
|
|
2249
|
-
""" Undocumented, consider
|
|
2299
|
+
""" Undocumented, consider contributing."""
|
|
2250
2300
|
|
|
2251
2301
|
zxwx: typing.Any
|
|
2252
|
-
""" Undocumented, consider
|
|
2302
|
+
""" Undocumented, consider contributing."""
|
|
2253
2303
|
|
|
2254
2304
|
zxwy: typing.Any
|
|
2255
|
-
""" Undocumented, consider
|
|
2305
|
+
""" Undocumented, consider contributing."""
|
|
2256
2306
|
|
|
2257
2307
|
zxwz: typing.Any
|
|
2258
|
-
""" Undocumented, consider
|
|
2308
|
+
""" Undocumented, consider contributing."""
|
|
2259
2309
|
|
|
2260
2310
|
zxx: typing.Any
|
|
2261
|
-
""" Undocumented, consider
|
|
2311
|
+
""" Undocumented, consider contributing."""
|
|
2262
2312
|
|
|
2263
2313
|
zxxw: typing.Any
|
|
2264
|
-
""" Undocumented, consider
|
|
2314
|
+
""" Undocumented, consider contributing."""
|
|
2265
2315
|
|
|
2266
2316
|
zxxx: typing.Any
|
|
2267
|
-
""" Undocumented, consider
|
|
2317
|
+
""" Undocumented, consider contributing."""
|
|
2268
2318
|
|
|
2269
2319
|
zxxy: typing.Any
|
|
2270
|
-
""" Undocumented, consider
|
|
2320
|
+
""" Undocumented, consider contributing."""
|
|
2271
2321
|
|
|
2272
2322
|
zxxz: typing.Any
|
|
2273
|
-
""" Undocumented, consider
|
|
2323
|
+
""" Undocumented, consider contributing."""
|
|
2274
2324
|
|
|
2275
2325
|
zxy: typing.Any
|
|
2276
|
-
""" Undocumented, consider
|
|
2326
|
+
""" Undocumented, consider contributing."""
|
|
2277
2327
|
|
|
2278
2328
|
zxyw: typing.Any
|
|
2279
|
-
""" Undocumented, consider
|
|
2329
|
+
""" Undocumented, consider contributing."""
|
|
2280
2330
|
|
|
2281
2331
|
zxyx: typing.Any
|
|
2282
|
-
""" Undocumented, consider
|
|
2332
|
+
""" Undocumented, consider contributing."""
|
|
2283
2333
|
|
|
2284
2334
|
zxyy: typing.Any
|
|
2285
|
-
""" Undocumented, consider
|
|
2335
|
+
""" Undocumented, consider contributing."""
|
|
2286
2336
|
|
|
2287
2337
|
zxyz: typing.Any
|
|
2288
|
-
""" Undocumented, consider
|
|
2338
|
+
""" Undocumented, consider contributing."""
|
|
2289
2339
|
|
|
2290
2340
|
zxz: typing.Any
|
|
2291
|
-
""" Undocumented, consider
|
|
2341
|
+
""" Undocumented, consider contributing."""
|
|
2292
2342
|
|
|
2293
2343
|
zxzw: typing.Any
|
|
2294
|
-
""" Undocumented, consider
|
|
2344
|
+
""" Undocumented, consider contributing."""
|
|
2295
2345
|
|
|
2296
2346
|
zxzx: typing.Any
|
|
2297
|
-
""" Undocumented, consider
|
|
2347
|
+
""" Undocumented, consider contributing."""
|
|
2298
2348
|
|
|
2299
2349
|
zxzy: typing.Any
|
|
2300
|
-
""" Undocumented, consider
|
|
2350
|
+
""" Undocumented, consider contributing."""
|
|
2301
2351
|
|
|
2302
2352
|
zxzz: typing.Any
|
|
2303
|
-
""" Undocumented, consider
|
|
2353
|
+
""" Undocumented, consider contributing."""
|
|
2304
2354
|
|
|
2305
2355
|
zy: typing.Any
|
|
2306
|
-
""" Undocumented, consider
|
|
2356
|
+
""" Undocumented, consider contributing."""
|
|
2307
2357
|
|
|
2308
2358
|
zyw: typing.Any
|
|
2309
|
-
""" Undocumented, consider
|
|
2359
|
+
""" Undocumented, consider contributing."""
|
|
2310
2360
|
|
|
2311
2361
|
zyww: typing.Any
|
|
2312
|
-
""" Undocumented, consider
|
|
2362
|
+
""" Undocumented, consider contributing."""
|
|
2313
2363
|
|
|
2314
2364
|
zywx: typing.Any
|
|
2315
|
-
""" Undocumented, consider
|
|
2365
|
+
""" Undocumented, consider contributing."""
|
|
2316
2366
|
|
|
2317
2367
|
zywy: typing.Any
|
|
2318
|
-
""" Undocumented, consider
|
|
2368
|
+
""" Undocumented, consider contributing."""
|
|
2319
2369
|
|
|
2320
2370
|
zywz: typing.Any
|
|
2321
|
-
""" Undocumented, consider
|
|
2371
|
+
""" Undocumented, consider contributing."""
|
|
2322
2372
|
|
|
2323
2373
|
zyx: typing.Any
|
|
2324
|
-
""" Undocumented, consider
|
|
2374
|
+
""" Undocumented, consider contributing."""
|
|
2325
2375
|
|
|
2326
2376
|
zyxw: typing.Any
|
|
2327
|
-
""" Undocumented, consider
|
|
2377
|
+
""" Undocumented, consider contributing."""
|
|
2328
2378
|
|
|
2329
2379
|
zyxx: typing.Any
|
|
2330
|
-
""" Undocumented, consider
|
|
2380
|
+
""" Undocumented, consider contributing."""
|
|
2331
2381
|
|
|
2332
2382
|
zyxy: typing.Any
|
|
2333
|
-
""" Undocumented, consider
|
|
2383
|
+
""" Undocumented, consider contributing."""
|
|
2334
2384
|
|
|
2335
2385
|
zyxz: typing.Any
|
|
2336
|
-
""" Undocumented, consider
|
|
2386
|
+
""" Undocumented, consider contributing."""
|
|
2337
2387
|
|
|
2338
2388
|
zyy: typing.Any
|
|
2339
|
-
""" Undocumented, consider
|
|
2389
|
+
""" Undocumented, consider contributing."""
|
|
2340
2390
|
|
|
2341
2391
|
zyyw: typing.Any
|
|
2342
|
-
""" Undocumented, consider
|
|
2392
|
+
""" Undocumented, consider contributing."""
|
|
2343
2393
|
|
|
2344
2394
|
zyyx: typing.Any
|
|
2345
|
-
""" Undocumented, consider
|
|
2395
|
+
""" Undocumented, consider contributing."""
|
|
2346
2396
|
|
|
2347
2397
|
zyyy: typing.Any
|
|
2348
|
-
""" Undocumented, consider
|
|
2398
|
+
""" Undocumented, consider contributing."""
|
|
2349
2399
|
|
|
2350
2400
|
zyyz: typing.Any
|
|
2351
|
-
""" Undocumented, consider
|
|
2401
|
+
""" Undocumented, consider contributing."""
|
|
2352
2402
|
|
|
2353
2403
|
zyz: typing.Any
|
|
2354
|
-
""" Undocumented, consider
|
|
2404
|
+
""" Undocumented, consider contributing."""
|
|
2355
2405
|
|
|
2356
2406
|
zyzw: typing.Any
|
|
2357
|
-
""" Undocumented, consider
|
|
2407
|
+
""" Undocumented, consider contributing."""
|
|
2358
2408
|
|
|
2359
2409
|
zyzx: typing.Any
|
|
2360
|
-
""" Undocumented, consider
|
|
2410
|
+
""" Undocumented, consider contributing."""
|
|
2361
2411
|
|
|
2362
2412
|
zyzy: typing.Any
|
|
2363
|
-
""" Undocumented, consider
|
|
2413
|
+
""" Undocumented, consider contributing."""
|
|
2364
2414
|
|
|
2365
2415
|
zyzz: typing.Any
|
|
2366
|
-
""" Undocumented, consider
|
|
2416
|
+
""" Undocumented, consider contributing."""
|
|
2367
2417
|
|
|
2368
2418
|
zz: typing.Any
|
|
2369
|
-
""" Undocumented, consider
|
|
2419
|
+
""" Undocumented, consider contributing."""
|
|
2370
2420
|
|
|
2371
2421
|
zzw: typing.Any
|
|
2372
|
-
""" Undocumented, consider
|
|
2422
|
+
""" Undocumented, consider contributing."""
|
|
2373
2423
|
|
|
2374
2424
|
zzww: typing.Any
|
|
2375
|
-
""" Undocumented, consider
|
|
2425
|
+
""" Undocumented, consider contributing."""
|
|
2376
2426
|
|
|
2377
2427
|
zzwx: typing.Any
|
|
2378
|
-
""" Undocumented, consider
|
|
2428
|
+
""" Undocumented, consider contributing."""
|
|
2379
2429
|
|
|
2380
2430
|
zzwy: typing.Any
|
|
2381
|
-
""" Undocumented, consider
|
|
2431
|
+
""" Undocumented, consider contributing."""
|
|
2382
2432
|
|
|
2383
2433
|
zzwz: typing.Any
|
|
2384
|
-
""" Undocumented, consider
|
|
2434
|
+
""" Undocumented, consider contributing."""
|
|
2385
2435
|
|
|
2386
2436
|
zzx: typing.Any
|
|
2387
|
-
""" Undocumented, consider
|
|
2437
|
+
""" Undocumented, consider contributing."""
|
|
2388
2438
|
|
|
2389
2439
|
zzxw: typing.Any
|
|
2390
|
-
""" Undocumented, consider
|
|
2440
|
+
""" Undocumented, consider contributing."""
|
|
2391
2441
|
|
|
2392
2442
|
zzxx: typing.Any
|
|
2393
|
-
""" Undocumented, consider
|
|
2443
|
+
""" Undocumented, consider contributing."""
|
|
2394
2444
|
|
|
2395
2445
|
zzxy: typing.Any
|
|
2396
|
-
""" Undocumented, consider
|
|
2446
|
+
""" Undocumented, consider contributing."""
|
|
2397
2447
|
|
|
2398
2448
|
zzxz: typing.Any
|
|
2399
|
-
""" Undocumented, consider
|
|
2449
|
+
""" Undocumented, consider contributing."""
|
|
2400
2450
|
|
|
2401
2451
|
zzy: typing.Any
|
|
2402
|
-
""" Undocumented, consider
|
|
2452
|
+
""" Undocumented, consider contributing."""
|
|
2403
2453
|
|
|
2404
2454
|
zzyw: typing.Any
|
|
2405
|
-
""" Undocumented, consider
|
|
2455
|
+
""" Undocumented, consider contributing."""
|
|
2406
2456
|
|
|
2407
2457
|
zzyx: typing.Any
|
|
2408
|
-
""" Undocumented, consider
|
|
2458
|
+
""" Undocumented, consider contributing."""
|
|
2409
2459
|
|
|
2410
2460
|
zzyy: typing.Any
|
|
2411
|
-
""" Undocumented, consider
|
|
2461
|
+
""" Undocumented, consider contributing."""
|
|
2412
2462
|
|
|
2413
2463
|
zzyz: typing.Any
|
|
2414
|
-
""" Undocumented, consider
|
|
2464
|
+
""" Undocumented, consider contributing."""
|
|
2415
2465
|
|
|
2416
2466
|
zzz: typing.Any
|
|
2417
|
-
""" Undocumented, consider
|
|
2467
|
+
""" Undocumented, consider contributing."""
|
|
2418
2468
|
|
|
2419
2469
|
zzzw: typing.Any
|
|
2420
|
-
""" Undocumented, consider
|
|
2470
|
+
""" Undocumented, consider contributing."""
|
|
2421
2471
|
|
|
2422
2472
|
zzzx: typing.Any
|
|
2423
|
-
""" Undocumented, consider
|
|
2473
|
+
""" Undocumented, consider contributing."""
|
|
2424
2474
|
|
|
2425
2475
|
zzzy: typing.Any
|
|
2426
|
-
""" Undocumented, consider
|
|
2476
|
+
""" Undocumented, consider contributing."""
|
|
2427
2477
|
|
|
2428
2478
|
zzzz: typing.Any
|
|
2429
|
-
""" Undocumented, consider
|
|
2479
|
+
""" Undocumented, consider contributing."""
|
|
2430
2480
|
|
|
2431
2481
|
@classmethod
|
|
2432
2482
|
def Fill(cls, size: int, fill: float = 0.0):
|
|
@@ -2469,94 +2519,94 @@ class Vector:
|
|
|
2469
2519
|
def Repeat(cls, vector, size: int):
|
|
2470
2520
|
"""Create a vector by repeating the values in vector until the required size is reached.
|
|
2471
2521
|
|
|
2472
|
-
:param
|
|
2473
|
-
:type tuple: typing.Union[typing.Sequence[float], 'Vector']
|
|
2522
|
+
:param vector:
|
|
2474
2523
|
:param size: The size of the vector to be created.
|
|
2475
2524
|
:type size: int
|
|
2476
2525
|
"""
|
|
2477
2526
|
...
|
|
2478
2527
|
|
|
2479
|
-
@staticmethod
|
|
2480
2528
|
def angle(
|
|
2481
|
-
|
|
2529
|
+
self,
|
|
2530
|
+
other: typing.Union[typing.Sequence[float], Vector],
|
|
2482
2531
|
fallback: typing.Any = None,
|
|
2483
|
-
) ->
|
|
2532
|
+
) -> typing.Any:
|
|
2484
2533
|
"""Return the angle between two vectors.
|
|
2485
2534
|
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2535
|
+
:param other: another vector to compare the angle with
|
|
2536
|
+
:type other: typing.Union[typing.Sequence[float], Vector]
|
|
2537
|
+
:param fallback: return this when the angle can't be calculated (zero length vector),
|
|
2538
|
+
(instead of raising a `ValueError`).
|
|
2539
|
+
:type fallback: typing.Any
|
|
2540
|
+
:return: angle in radians or fallback when given
|
|
2541
|
+
:rtype: float
|
|
2492
2542
|
"""
|
|
2493
2543
|
...
|
|
2494
2544
|
|
|
2495
|
-
@staticmethod
|
|
2496
2545
|
def angle_signed(
|
|
2497
|
-
other: typing.Union[typing.Sequence[float],
|
|
2498
|
-
) ->
|
|
2546
|
+
self, other: typing.Union[typing.Sequence[float], Vector], fallback: typing.Any
|
|
2547
|
+
) -> typing.Any:
|
|
2499
2548
|
"""Return the signed angle between two 2D vectors (clockwise is positive).
|
|
2500
2549
|
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2550
|
+
:param other: another vector to compare the angle with
|
|
2551
|
+
:type other: typing.Union[typing.Sequence[float], Vector]
|
|
2552
|
+
:param fallback: return this when the angle can't be calculated (zero length vector),
|
|
2553
|
+
(instead of raising a `ValueError`).
|
|
2554
|
+
:type fallback: typing.Any
|
|
2555
|
+
:return: angle in radians or fallback when given
|
|
2556
|
+
:rtype: float
|
|
2507
2557
|
"""
|
|
2508
2558
|
...
|
|
2509
2559
|
|
|
2510
|
-
|
|
2511
|
-
def copy() -> "Vector":
|
|
2560
|
+
def copy(self) -> float:
|
|
2512
2561
|
"""Returns a copy of this vector.
|
|
2513
2562
|
|
|
2514
|
-
:rtype: 'Vector'
|
|
2515
2563
|
:return: A copy of the vector.
|
|
2564
|
+
:rtype: Vector
|
|
2516
2565
|
"""
|
|
2517
2566
|
...
|
|
2518
2567
|
|
|
2519
|
-
def cross(
|
|
2568
|
+
def cross(
|
|
2569
|
+
self, other: typing.Union[typing.Sequence[float], Vector]
|
|
2570
|
+
) -> typing.Union[typing.Sequence[float], Vector]:
|
|
2520
2571
|
"""Return the cross product of this vector and another.
|
|
2521
2572
|
|
|
2522
2573
|
:param other: The other vector to perform the cross product with.
|
|
2523
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
2524
|
-
:rtype: 'Vector'
|
|
2574
|
+
:type other: typing.Union[typing.Sequence[float], Vector]
|
|
2525
2575
|
:return: The cross product.
|
|
2576
|
+
:rtype: Vector
|
|
2526
2577
|
"""
|
|
2527
2578
|
...
|
|
2528
2579
|
|
|
2529
|
-
def dot(
|
|
2580
|
+
def dot(
|
|
2581
|
+
self, other: typing.Union[typing.Sequence[float], Vector]
|
|
2582
|
+
) -> typing.Union[typing.Sequence[float], Vector]:
|
|
2530
2583
|
"""Return the dot product of this vector and another.
|
|
2531
2584
|
|
|
2532
2585
|
:param other: The other vector to perform the dot product with.
|
|
2533
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
2534
|
-
:rtype: float
|
|
2586
|
+
:type other: typing.Union[typing.Sequence[float], Vector]
|
|
2535
2587
|
:return: The dot product.
|
|
2588
|
+
:rtype: float
|
|
2536
2589
|
"""
|
|
2537
2590
|
...
|
|
2538
2591
|
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
"""Make this object immutable. After this the object can be hashed, used in dictionaries & sets.
|
|
2592
|
+
def freeze(self) -> float:
|
|
2593
|
+
"""Make this object immutable.After this the object can be hashed, used in dictionaries & sets.
|
|
2542
2594
|
|
|
2543
|
-
:rtype: 'Vector'
|
|
2544
2595
|
:return: An instance of this object.
|
|
2545
2596
|
"""
|
|
2546
2597
|
...
|
|
2547
2598
|
|
|
2548
|
-
@staticmethod
|
|
2549
2599
|
def lerp(
|
|
2550
|
-
other: typing.Union[typing.Sequence[float],
|
|
2551
|
-
) ->
|
|
2600
|
+
self, other: typing.Union[typing.Sequence[float], Vector], factor: float
|
|
2601
|
+
) -> float:
|
|
2552
2602
|
"""Returns the interpolation of two vectors.
|
|
2553
2603
|
|
|
2554
2604
|
:param other: value to interpolate with.
|
|
2555
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
2605
|
+
:type other: typing.Union[typing.Sequence[float], Vector]
|
|
2556
2606
|
:param factor: The interpolation value in [0.0, 1.0].
|
|
2557
2607
|
:type factor: float
|
|
2558
|
-
:rtype: 'Vector'
|
|
2559
2608
|
:return: The interpolated vector.
|
|
2609
|
+
:rtype: Vector
|
|
2560
2610
|
"""
|
|
2561
2611
|
...
|
|
2562
2612
|
|
|
@@ -2568,162 +2618,168 @@ class Vector:
|
|
|
2568
2618
|
"""Normalize the vector, making the length of the vector always 1.0."""
|
|
2569
2619
|
...
|
|
2570
2620
|
|
|
2571
|
-
def normalized(self) ->
|
|
2621
|
+
def normalized(self) -> Vector:
|
|
2572
2622
|
"""Return a new, normalized vector.
|
|
2573
2623
|
|
|
2574
|
-
:rtype: 'Vector'
|
|
2575
2624
|
:return: a normalized copy of the vector
|
|
2625
|
+
:rtype: Vector
|
|
2576
2626
|
"""
|
|
2577
2627
|
...
|
|
2578
2628
|
|
|
2579
|
-
def orthogonal(self) ->
|
|
2629
|
+
def orthogonal(self) -> Vector:
|
|
2580
2630
|
"""Return a perpendicular vector.
|
|
2581
2631
|
|
|
2582
|
-
:rtype: 'Vector'
|
|
2583
2632
|
:return: a new vector 90 degrees from this vector.
|
|
2633
|
+
:rtype: Vector
|
|
2584
2634
|
"""
|
|
2585
2635
|
...
|
|
2586
2636
|
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2637
|
+
def project(
|
|
2638
|
+
self, other: typing.Union[typing.Sequence[float], Vector]
|
|
2639
|
+
) -> typing.Union[typing.Sequence[float], Vector]:
|
|
2640
|
+
"""Return the projection of this vector onto the other.
|
|
2590
2641
|
|
|
2591
2642
|
:param other: second vector.
|
|
2592
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
2593
|
-
:rtype: 'Vector'
|
|
2643
|
+
:type other: typing.Union[typing.Sequence[float], Vector]
|
|
2594
2644
|
:return: the parallel projection vector
|
|
2645
|
+
:rtype: Vector
|
|
2595
2646
|
"""
|
|
2596
2647
|
...
|
|
2597
2648
|
|
|
2598
2649
|
def reflect(
|
|
2599
|
-
self, mirror: typing.Union[typing.Sequence[float],
|
|
2600
|
-
) ->
|
|
2601
|
-
"""Return the reflection vector from the
|
|
2650
|
+
self, mirror: typing.Union[typing.Sequence[float], Vector]
|
|
2651
|
+
) -> typing.Union[typing.Sequence[float], Vector]:
|
|
2652
|
+
"""Return the reflection vector from the mirror argument.
|
|
2602
2653
|
|
|
2603
2654
|
:param mirror: This vector could be a normal from the reflecting surface.
|
|
2604
|
-
:type mirror: typing.Union[typing.Sequence[float],
|
|
2605
|
-
:rtype: 'Vector'
|
|
2655
|
+
:type mirror: typing.Union[typing.Sequence[float], Vector]
|
|
2606
2656
|
:return: The reflected vector matching the size of this vector.
|
|
2657
|
+
:rtype: Vector
|
|
2607
2658
|
"""
|
|
2608
2659
|
...
|
|
2609
2660
|
|
|
2610
2661
|
def resize(self, size=3):
|
|
2611
|
-
"""Resize the vector to have size number of elements.
|
|
2662
|
+
"""Resize the vector to have size number of elements.
|
|
2663
|
+
|
|
2664
|
+
:param size:
|
|
2665
|
+
"""
|
|
2612
2666
|
...
|
|
2613
2667
|
|
|
2614
2668
|
def resize_2d(self):
|
|
2615
|
-
"""Resize the vector to 2D
|
|
2669
|
+
"""Resize the vector to 2D (x, y)."""
|
|
2616
2670
|
...
|
|
2617
2671
|
|
|
2618
2672
|
def resize_3d(self):
|
|
2619
|
-
"""Resize the vector to 3D
|
|
2673
|
+
"""Resize the vector to 3D (x, y, z)."""
|
|
2620
2674
|
...
|
|
2621
2675
|
|
|
2622
2676
|
def resize_4d(self):
|
|
2623
2677
|
"""Resize the vector to 4D (x, y, z, w)."""
|
|
2624
2678
|
...
|
|
2625
2679
|
|
|
2626
|
-
def resized(self, size=3)
|
|
2680
|
+
def resized(self, size=3):
|
|
2627
2681
|
"""Return a resized copy of the vector with size number of elements.
|
|
2628
2682
|
|
|
2629
|
-
:
|
|
2683
|
+
:param size:
|
|
2630
2684
|
:return: a new vector
|
|
2685
|
+
:rtype: Vector
|
|
2631
2686
|
"""
|
|
2632
2687
|
...
|
|
2633
2688
|
|
|
2634
|
-
@staticmethod
|
|
2635
2689
|
def rotate(
|
|
2690
|
+
self,
|
|
2636
2691
|
other: typing.Union[
|
|
2637
2692
|
typing.Sequence[float],
|
|
2638
|
-
|
|
2693
|
+
Euler,
|
|
2639
2694
|
typing.Sequence[float],
|
|
2640
|
-
|
|
2695
|
+
Quaternion,
|
|
2641
2696
|
typing.Sequence[float],
|
|
2642
|
-
|
|
2697
|
+
Matrix,
|
|
2643
2698
|
],
|
|
2644
2699
|
):
|
|
2645
2700
|
"""Rotate the vector by a rotation value.
|
|
2646
2701
|
|
|
2647
2702
|
:param other: rotation component of mathutils value
|
|
2648
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
2703
|
+
:type other: typing.Union[typing.Sequence[float], Euler, typing.Sequence[float], Quaternion, typing.Sequence[float], Matrix]
|
|
2649
2704
|
"""
|
|
2650
2705
|
...
|
|
2651
2706
|
|
|
2652
|
-
@staticmethod
|
|
2653
2707
|
def rotation_difference(
|
|
2654
|
-
other: typing.Union[typing.Sequence[float],
|
|
2655
|
-
) ->
|
|
2656
|
-
"""Returns a quaternion representing the rotational difference between this
|
|
2708
|
+
self, other: typing.Union[typing.Sequence[float], Vector]
|
|
2709
|
+
) -> typing.Union[typing.Sequence[float], Vector]:
|
|
2710
|
+
"""Returns a quaternion representing the rotational difference between this
|
|
2711
|
+
vector and another.
|
|
2657
2712
|
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2713
|
+
:param other: second vector.
|
|
2714
|
+
:type other: typing.Union[typing.Sequence[float], Vector]
|
|
2715
|
+
:return: the rotational difference between the two vectors.
|
|
2716
|
+
:rtype: Quaternion
|
|
2662
2717
|
"""
|
|
2663
2718
|
...
|
|
2664
2719
|
|
|
2665
|
-
@staticmethod
|
|
2666
2720
|
def slerp(
|
|
2667
|
-
|
|
2721
|
+
self,
|
|
2722
|
+
other: typing.Union[typing.Sequence[float], Vector],
|
|
2668
2723
|
factor: float,
|
|
2669
2724
|
fallback: typing.Any = None,
|
|
2670
|
-
) ->
|
|
2725
|
+
) -> typing.Any:
|
|
2671
2726
|
"""Returns the interpolation of two non-zero vectors (spherical coordinates).
|
|
2672
2727
|
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2728
|
+
:param other: value to interpolate with.
|
|
2729
|
+
:type other: typing.Union[typing.Sequence[float], Vector]
|
|
2730
|
+
:param factor: The interpolation value typically in [0.0, 1.0].
|
|
2731
|
+
:type factor: float
|
|
2732
|
+
:param fallback: return this when the vector can't be calculated (zero length vector or direct opposites),
|
|
2733
|
+
(instead of raising a `ValueError`).
|
|
2734
|
+
:type fallback: typing.Any
|
|
2735
|
+
:return: The interpolated vector.
|
|
2736
|
+
:rtype: Vector
|
|
2681
2737
|
"""
|
|
2682
2738
|
...
|
|
2683
2739
|
|
|
2684
|
-
def to_2d(self) ->
|
|
2740
|
+
def to_2d(self) -> Vector:
|
|
2685
2741
|
"""Return a 2d copy of the vector.
|
|
2686
2742
|
|
|
2687
|
-
:rtype: 'Vector'
|
|
2688
2743
|
:return: a new vector
|
|
2744
|
+
:rtype: Vector
|
|
2689
2745
|
"""
|
|
2690
2746
|
...
|
|
2691
2747
|
|
|
2692
|
-
def to_3d(self) ->
|
|
2748
|
+
def to_3d(self) -> Vector:
|
|
2693
2749
|
"""Return a 3d copy of the vector.
|
|
2694
2750
|
|
|
2695
|
-
:rtype: 'Vector'
|
|
2696
2751
|
:return: a new vector
|
|
2752
|
+
:rtype: Vector
|
|
2697
2753
|
"""
|
|
2698
2754
|
...
|
|
2699
2755
|
|
|
2700
|
-
def to_4d(self) ->
|
|
2756
|
+
def to_4d(self) -> Vector:
|
|
2701
2757
|
"""Return a 4d copy of the vector.
|
|
2702
2758
|
|
|
2703
|
-
:rtype: 'Vector'
|
|
2704
2759
|
:return: a new vector
|
|
2760
|
+
:rtype: Vector
|
|
2705
2761
|
"""
|
|
2706
2762
|
...
|
|
2707
2763
|
|
|
2708
|
-
def to_track_quat(self, track: str, up: str) ->
|
|
2764
|
+
def to_track_quat(self, track: str, up: str) -> str:
|
|
2709
2765
|
"""Return a quaternion rotation from the vector and the track and up axis.
|
|
2710
2766
|
|
|
2711
2767
|
:param track: Track axis in ['X', 'Y', 'Z', '-X', '-Y', '-Z'].
|
|
2712
2768
|
:type track: str
|
|
2713
2769
|
:param up: Up axis in ['X', 'Y', 'Z'].
|
|
2714
2770
|
:type up: str
|
|
2715
|
-
:rtype: 'Quaternion'
|
|
2716
2771
|
:return: rotation from the vector and the track and up axis.
|
|
2772
|
+
:rtype: Quaternion
|
|
2717
2773
|
"""
|
|
2718
2774
|
...
|
|
2719
2775
|
|
|
2720
|
-
def to_tuple(self, precision: int = -1) ->
|
|
2776
|
+
def to_tuple(self, precision: int = -1) -> int:
|
|
2721
2777
|
"""Return this vector as a tuple with.
|
|
2722
2778
|
|
|
2723
2779
|
:param precision: The number to round the value to in [-1, 21].
|
|
2724
2780
|
:type precision: int
|
|
2781
|
+
:return: the values of the vector rounded by precision
|
|
2725
2782
|
:rtype: typing.Tuple
|
|
2726
|
-
:return: the values of the vector rounded by *precision*
|
|
2727
2783
|
"""
|
|
2728
2784
|
...
|
|
2729
2785
|
|
|
@@ -2731,25 +2787,27 @@ class Vector:
|
|
|
2731
2787
|
"""Set all values to zero."""
|
|
2732
2788
|
...
|
|
2733
2789
|
|
|
2734
|
-
def __init__(self, seq=(0.0, 0.0, 0.0))
|
|
2790
|
+
def __init__(self, seq=(0.0, 0.0, 0.0)):
|
|
2735
2791
|
"""
|
|
2736
2792
|
|
|
2737
|
-
:
|
|
2793
|
+
:param seq:
|
|
2738
2794
|
"""
|
|
2739
2795
|
...
|
|
2740
2796
|
|
|
2741
|
-
def __len__(self)
|
|
2797
|
+
def __len__(self):
|
|
2742
2798
|
"""
|
|
2743
2799
|
|
|
2800
|
+
:return:
|
|
2744
2801
|
:rtype: int
|
|
2745
2802
|
"""
|
|
2746
2803
|
...
|
|
2747
2804
|
|
|
2748
|
-
def __getitem__(self, key: int) ->
|
|
2805
|
+
def __getitem__(self, key: int) -> int:
|
|
2749
2806
|
"""
|
|
2750
2807
|
|
|
2751
2808
|
:param key:
|
|
2752
2809
|
:type key: int
|
|
2810
|
+
:return:
|
|
2753
2811
|
:rtype: float
|
|
2754
2812
|
"""
|
|
2755
2813
|
...
|
|
@@ -2761,166 +2819,183 @@ class Vector:
|
|
|
2761
2819
|
:type key: int
|
|
2762
2820
|
:param value:
|
|
2763
2821
|
:type value: float
|
|
2822
|
+
:return:
|
|
2764
2823
|
:rtype: float
|
|
2765
2824
|
"""
|
|
2766
2825
|
...
|
|
2767
2826
|
|
|
2768
|
-
def __neg__(self) ->
|
|
2827
|
+
def __neg__(self) -> float:
|
|
2769
2828
|
"""
|
|
2770
2829
|
|
|
2771
|
-
:
|
|
2830
|
+
:return:
|
|
2831
|
+
:rtype: Vector
|
|
2772
2832
|
"""
|
|
2773
2833
|
...
|
|
2774
2834
|
|
|
2775
2835
|
def __add__(
|
|
2776
|
-
self, other: typing.Union[typing.Sequence[float],
|
|
2777
|
-
) ->
|
|
2836
|
+
self, other: typing.Union[typing.Sequence[float], Vector]
|
|
2837
|
+
) -> typing.Union[typing.Sequence[float], Vector]:
|
|
2778
2838
|
"""
|
|
2779
2839
|
|
|
2780
2840
|
:param other:
|
|
2781
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
2782
|
-
:
|
|
2841
|
+
:type other: typing.Union[typing.Sequence[float], Vector]
|
|
2842
|
+
:return:
|
|
2843
|
+
:rtype: Vector
|
|
2783
2844
|
"""
|
|
2784
2845
|
...
|
|
2785
2846
|
|
|
2786
2847
|
def __sub__(
|
|
2787
|
-
self, other: typing.Union[typing.Sequence[float],
|
|
2788
|
-
) ->
|
|
2848
|
+
self, other: typing.Union[typing.Sequence[float], Vector]
|
|
2849
|
+
) -> typing.Union[typing.Sequence[float], Vector]:
|
|
2789
2850
|
"""
|
|
2790
2851
|
|
|
2791
2852
|
:param other:
|
|
2792
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
2793
|
-
:
|
|
2853
|
+
:type other: typing.Union[typing.Sequence[float], Vector]
|
|
2854
|
+
:return:
|
|
2855
|
+
:rtype: Vector
|
|
2794
2856
|
"""
|
|
2795
2857
|
...
|
|
2796
2858
|
|
|
2797
|
-
def __mul__(self, other: typing.Union[int, float]) ->
|
|
2859
|
+
def __mul__(self, other: typing.Union[int, float]) -> typing.Union[int, float]:
|
|
2798
2860
|
"""
|
|
2799
2861
|
|
|
2800
2862
|
:param other:
|
|
2801
2863
|
:type other: typing.Union[int, float]
|
|
2802
|
-
:
|
|
2864
|
+
:return:
|
|
2865
|
+
:rtype: Vector
|
|
2803
2866
|
"""
|
|
2804
2867
|
...
|
|
2805
2868
|
|
|
2806
|
-
def __truediv__(self, other: typing.Union[int, float]) ->
|
|
2869
|
+
def __truediv__(self, other: typing.Union[int, float]) -> typing.Union[int, float]:
|
|
2807
2870
|
"""
|
|
2808
2871
|
|
|
2809
2872
|
:param other:
|
|
2810
2873
|
:type other: typing.Union[int, float]
|
|
2811
|
-
:
|
|
2874
|
+
:return:
|
|
2875
|
+
:rtype: Vector
|
|
2812
2876
|
"""
|
|
2813
2877
|
...
|
|
2814
2878
|
|
|
2815
2879
|
def __matmul__(
|
|
2816
|
-
self, other: typing.Union[typing.Sequence[float],
|
|
2817
|
-
) ->
|
|
2880
|
+
self, other: typing.Union[typing.Sequence[float], Matrix]
|
|
2881
|
+
) -> typing.Union[typing.Sequence[float], Matrix]:
|
|
2818
2882
|
"""
|
|
2819
2883
|
|
|
2820
2884
|
:param other:
|
|
2821
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
2822
|
-
:
|
|
2885
|
+
:type other: typing.Union[typing.Sequence[float], Matrix]
|
|
2886
|
+
:return:
|
|
2887
|
+
:rtype: Vector
|
|
2823
2888
|
"""
|
|
2824
2889
|
...
|
|
2825
2890
|
|
|
2826
2891
|
def __radd__(
|
|
2827
|
-
self, other: typing.Union[typing.Sequence[float],
|
|
2828
|
-
) ->
|
|
2892
|
+
self, other: typing.Union[typing.Sequence[float], Vector]
|
|
2893
|
+
) -> typing.Union[typing.Sequence[float], Vector]:
|
|
2829
2894
|
"""
|
|
2830
2895
|
|
|
2831
2896
|
:param other:
|
|
2832
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
2833
|
-
:
|
|
2897
|
+
:type other: typing.Union[typing.Sequence[float], Vector]
|
|
2898
|
+
:return:
|
|
2899
|
+
:rtype: Vector
|
|
2834
2900
|
"""
|
|
2835
2901
|
...
|
|
2836
2902
|
|
|
2837
2903
|
def __rsub__(
|
|
2838
|
-
self, other: typing.Union[typing.Sequence[float],
|
|
2839
|
-
) ->
|
|
2904
|
+
self, other: typing.Union[typing.Sequence[float], Vector]
|
|
2905
|
+
) -> typing.Union[typing.Sequence[float], Vector]:
|
|
2840
2906
|
"""
|
|
2841
2907
|
|
|
2842
2908
|
:param other:
|
|
2843
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
2844
|
-
:
|
|
2909
|
+
:type other: typing.Union[typing.Sequence[float], Vector]
|
|
2910
|
+
:return:
|
|
2911
|
+
:rtype: Vector
|
|
2845
2912
|
"""
|
|
2846
2913
|
...
|
|
2847
2914
|
|
|
2848
|
-
def __rmul__(self, other: typing.Union[int, float]) ->
|
|
2915
|
+
def __rmul__(self, other: typing.Union[int, float]) -> typing.Union[int, float]:
|
|
2849
2916
|
"""
|
|
2850
2917
|
|
|
2851
2918
|
:param other:
|
|
2852
2919
|
:type other: typing.Union[int, float]
|
|
2853
|
-
:
|
|
2920
|
+
:return:
|
|
2921
|
+
:rtype: Vector
|
|
2854
2922
|
"""
|
|
2855
2923
|
...
|
|
2856
2924
|
|
|
2857
|
-
def __rtruediv__(self, other: typing.Union[int, float]) ->
|
|
2925
|
+
def __rtruediv__(self, other: typing.Union[int, float]) -> typing.Union[int, float]:
|
|
2858
2926
|
"""
|
|
2859
2927
|
|
|
2860
2928
|
:param other:
|
|
2861
2929
|
:type other: typing.Union[int, float]
|
|
2862
|
-
:
|
|
2930
|
+
:return:
|
|
2931
|
+
:rtype: Vector
|
|
2863
2932
|
"""
|
|
2864
2933
|
...
|
|
2865
2934
|
|
|
2866
2935
|
def __rmatmul__(
|
|
2867
|
-
self, other: typing.Union[typing.Sequence[float],
|
|
2868
|
-
) ->
|
|
2936
|
+
self, other: typing.Union[typing.Sequence[float], Matrix]
|
|
2937
|
+
) -> typing.Union[typing.Sequence[float], Matrix]:
|
|
2869
2938
|
"""
|
|
2870
2939
|
|
|
2871
2940
|
:param other:
|
|
2872
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
2873
|
-
:
|
|
2941
|
+
:type other: typing.Union[typing.Sequence[float], Matrix]
|
|
2942
|
+
:return:
|
|
2943
|
+
:rtype: Vector
|
|
2874
2944
|
"""
|
|
2875
2945
|
...
|
|
2876
2946
|
|
|
2877
2947
|
def __iadd__(
|
|
2878
|
-
self, other: typing.Union[typing.Sequence[float],
|
|
2879
|
-
) ->
|
|
2948
|
+
self, other: typing.Union[typing.Sequence[float], Vector]
|
|
2949
|
+
) -> typing.Union[typing.Sequence[float], Vector]:
|
|
2880
2950
|
"""
|
|
2881
2951
|
|
|
2882
2952
|
:param other:
|
|
2883
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
2884
|
-
:
|
|
2953
|
+
:type other: typing.Union[typing.Sequence[float], Vector]
|
|
2954
|
+
:return:
|
|
2955
|
+
:rtype: Vector
|
|
2885
2956
|
"""
|
|
2886
2957
|
...
|
|
2887
2958
|
|
|
2888
2959
|
def __isub__(
|
|
2889
|
-
self, other: typing.Union[typing.Sequence[float],
|
|
2890
|
-
) ->
|
|
2960
|
+
self, other: typing.Union[typing.Sequence[float], Vector]
|
|
2961
|
+
) -> typing.Union[typing.Sequence[float], Vector]:
|
|
2891
2962
|
"""
|
|
2892
2963
|
|
|
2893
2964
|
:param other:
|
|
2894
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
2895
|
-
:
|
|
2965
|
+
:type other: typing.Union[typing.Sequence[float], Vector]
|
|
2966
|
+
:return:
|
|
2967
|
+
:rtype: Vector
|
|
2896
2968
|
"""
|
|
2897
2969
|
...
|
|
2898
2970
|
|
|
2899
|
-
def __imul__(self, other: typing.Union[int, float]) ->
|
|
2971
|
+
def __imul__(self, other: typing.Union[int, float]) -> typing.Union[int, float]:
|
|
2900
2972
|
"""
|
|
2901
2973
|
|
|
2902
2974
|
:param other:
|
|
2903
2975
|
:type other: typing.Union[int, float]
|
|
2904
|
-
:
|
|
2976
|
+
:return:
|
|
2977
|
+
:rtype: Vector
|
|
2905
2978
|
"""
|
|
2906
2979
|
...
|
|
2907
2980
|
|
|
2908
|
-
def __itruediv__(self, other: typing.Union[int, float]) ->
|
|
2981
|
+
def __itruediv__(self, other: typing.Union[int, float]) -> typing.Union[int, float]:
|
|
2909
2982
|
"""
|
|
2910
2983
|
|
|
2911
2984
|
:param other:
|
|
2912
2985
|
:type other: typing.Union[int, float]
|
|
2913
|
-
:
|
|
2986
|
+
:return:
|
|
2987
|
+
:rtype: Vector
|
|
2914
2988
|
"""
|
|
2915
2989
|
...
|
|
2916
2990
|
|
|
2917
2991
|
def __imatmul__(
|
|
2918
|
-
self, other: typing.Union[typing.Sequence[float],
|
|
2919
|
-
) ->
|
|
2992
|
+
self, other: typing.Union[typing.Sequence[float], Matrix]
|
|
2993
|
+
) -> typing.Union[typing.Sequence[float], Matrix]:
|
|
2920
2994
|
"""
|
|
2921
2995
|
|
|
2922
2996
|
:param other:
|
|
2923
|
-
:type other: typing.Union[typing.Sequence[float],
|
|
2924
|
-
:
|
|
2997
|
+
:type other: typing.Union[typing.Sequence[float], Matrix]
|
|
2998
|
+
:return:
|
|
2999
|
+
:rtype: Vector
|
|
2925
3000
|
"""
|
|
2926
3001
|
...
|