fake-bpy-module 20240516__py3-none-any.whl → 20240517__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.
Potentially problematic release.
This version of fake-bpy-module might be problematic. Click here for more details.
- _bpy_internal/freedesktop/__init__.pyi +2 -2
- addon_utils/__init__.pyi +43 -12
- animsys_refactor/__init__.pyi +4 -4
- aud/__init__.pyi +7 -7
- bgl/__init__.pyi +121 -183
- bl_app_override/__init__.pyi +5 -5
- bl_app_override/helpers/__init__.pyi +3 -1
- bl_app_template_utils/__init__.pyi +5 -5
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +48 -10
- bl_console_utils/autocomplete/complete_import/__init__.pyi +27 -6
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +40 -8
- bl_console_utils/autocomplete/intellisense/__init__.pyi +31 -4
- bl_i18n_utils/bl_extract_messages/__init__.pyi +5 -5
- bl_i18n_utils/settings/__init__.pyi +4 -2
- bl_i18n_utils/utils/__init__.pyi +86 -58
- bl_i18n_utils/utils_rtl/__init__.pyi +8 -2
- bl_keymap_utils/io/__init__.pyi +4 -4
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +2 -2
- bl_keymap_utils/platform_helpers/__init__.pyi +2 -2
- bl_operators/add_mesh_torus/__init__.pyi +126 -41
- bl_operators/anim/__init__.pyi +1001 -328
- bl_operators/assets/__init__.pyi +376 -123
- bl_operators/bmesh/find_adjacent/__init__.pyi +3 -3
- bl_operators/clip/__init__.pyi +1250 -409
- bl_operators/console/__init__.pyi +626 -205
- bl_operators/constraint/__init__.pyi +502 -165
- bl_operators/file/__init__.pyi +376 -123
- bl_operators/freestyle/__init__.pyi +501 -164
- bl_operators/geometry_nodes/__init__.pyi +501 -164
- bl_operators/image/__init__.pyi +621 -200
- bl_operators/mesh/__init__.pyi +376 -123
- bl_operators/node/__init__.pyi +1243 -402
- bl_operators/object/__init__.pyi +1876 -615
- bl_operators/object_align/__init__.pyi +126 -41
- bl_operators/object_quick_effects/__init__.pyi +502 -165
- bl_operators/object_randomize_transform/__init__.pyi +126 -41
- bl_operators/presets/__init__.pyi +3069 -1027
- bl_operators/rigidbody/__init__.pyi +376 -123
- bl_operators/screen_play_rendered_anim/__init__.pyi +126 -41
- bl_operators/sequencer/__init__.pyi +1009 -331
- bl_operators/spreadsheet/__init__.pyi +126 -41
- bl_operators/userpref/__init__.pyi +3263 -1078
- bl_operators/uvcalc_follow_active/__init__.pyi +126 -41
- bl_operators/uvcalc_lightmap/__init__.pyi +137 -47
- bl_operators/uvcalc_transform/__init__.pyi +289 -90
- bl_operators/vertexpaint_dirt/__init__.pyi +126 -41
- bl_operators/view3d/__init__.pyi +868 -279
- bl_operators/wm/__init__.pyi +5777 -1934
- bl_operators/world/__init__.pyi +126 -41
- bl_previews_utils/bl_previews_render/__init__.pyi +1 -1
- bl_rna_utils/data_path/__init__.pyi +8 -3
- bl_ui/__init__.pyi +338 -131
- bl_ui/anim/__init__.pyi +164 -64
- bl_ui/asset_shelf/__init__.pyi +129 -42
- bl_ui/generic_ui_list/__init__.pyi +412 -135
- bl_ui/node_add_menu/__init__.pyi +168 -68
- bl_ui/node_add_menu_compositor/__init__.pyi +2921 -1138
- bl_ui/node_add_menu_geometry/__init__.pyi +7785 -3032
- bl_ui/node_add_menu_shader/__init__.pyi +1621 -630
- bl_ui/node_add_menu_texture/__init__.pyi +1459 -567
- bl_ui/properties_animviz/__init__.pyi +2 -2
- bl_ui/properties_collection/__init__.pyi +806 -274
- bl_ui/properties_constraint/__init__.pyi +10253 -3458
- bl_ui/properties_data_armature/__init__.pyi +1615 -552
- bl_ui/properties_data_bone/__init__.pyi +1288 -425
- bl_ui/properties_data_camera/__init__.pyi +1854 -631
- bl_ui/properties_data_curve/__init__.pyi +1929 -636
- bl_ui/properties_data_curves/__init__.pyi +806 -274
- bl_ui/properties_data_empty/__init__.pyi +257 -84
- bl_ui/properties_data_gpencil/__init__.pyi +2380 -803
- bl_ui/properties_data_grease_pencil/__init__.pyi +1902 -656
- bl_ui/properties_data_lattice/__init__.pyi +388 -127
- bl_ui/properties_data_light/__init__.pyi +1541 -506
- bl_ui/properties_data_lightprobe/__init__.pyi +1667 -548
- bl_ui/properties_data_mesh/__init__.pyi +2704 -929
- bl_ui/properties_data_metaball/__init__.pyi +644 -211
- bl_ui/properties_data_modifier/__init__.pyi +1353 -502
- bl_ui/properties_data_pointcloud/__init__.pyi +679 -233
- bl_ui/properties_data_shaderfx/__init__.pyi +129 -42
- bl_ui/properties_data_speaker/__init__.pyi +644 -211
- bl_ui/properties_data_volume/__init__.pyi +1030 -339
- bl_ui/properties_freestyle/__init__.pyi +3113 -1035
- bl_ui/properties_grease_pencil_common/__init__.pyi +2464 -933
- bl_ui/properties_mask_common/__init__.pyi +1101 -420
- bl_ui/properties_material/__init__.pyi +2091 -699
- bl_ui/properties_material_gpencil/__init__.pyi +1350 -466
- bl_ui/properties_object/__init__.pyi +1838 -618
- bl_ui/properties_output/__init__.pyi +2414 -831
- bl_ui/properties_paint_common/__init__.pyi +412 -289
- bl_ui/properties_particle/__init__.pyi +6737 -2241
- bl_ui/properties_physics_cloth/__init__.pyi +1825 -612
- bl_ui/properties_physics_common/__init__.pyi +129 -42
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +2821 -928
- bl_ui/properties_physics_field/__init__.pyi +1283 -422
- bl_ui/properties_physics_fluid/__init__.pyi +3620 -1203
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +129 -42
- bl_ui/properties_physics_rigidbody/__init__.pyi +1027 -338
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +1667 -548
- bl_ui/properties_physics_softbody/__init__.pyi +1924 -633
- bl_ui/properties_render/__init__.pyi +6830 -2263
- bl_ui/properties_scene/__init__.pyi +1929 -636
- bl_ui/properties_texture/__init__.pyi +3370 -1118
- bl_ui/properties_view_layer/__init__.pyi +2346 -782
- bl_ui/properties_workspace/__init__.pyi +516 -169
- bl_ui/properties_world/__init__.pyi +1284 -421
- bl_ui/space_clip/__init__.pyi +10134 -3639
- bl_ui/space_console/__init__.pyi +939 -357
- bl_ui/space_dopesheet/__init__.pyi +4327 -1562
- bl_ui/space_filebrowser/__init__.pyi +4164 -1499
- bl_ui/space_graph/__init__.pyi +3108 -1179
- bl_ui/space_image/__init__.pyi +9766 -3596
- bl_ui/space_info/__init__.pyi +939 -357
- bl_ui/space_nla/__init__.pyi +2620 -988
- bl_ui/space_node/__init__.pyi +3994 -1434
- bl_ui/space_outliner/__init__.pyi +2203 -842
- bl_ui/space_properties/__init__.pyi +386 -127
- bl_ui/space_sequencer/__init__.pyi +10773 -3878
- bl_ui/space_spreadsheet/__init__.pyi +130 -43
- bl_ui/space_statusbar/__init__.pyi +129 -42
- bl_ui/space_text/__init__.pyi +2458 -925
- bl_ui/space_time/__init__.pyi +1033 -378
- bl_ui/space_toolsystem_common/__init__.pyi +20 -16
- bl_ui/space_toolsystem_toolbar/__init__.pyi +37 -21
- bl_ui/space_topbar/__init__.pyi +3980 -1496
- bl_ui/space_userpref/__init__.pyi +11373 -3797
- bl_ui/space_view3d/__init__.pyi +40865 -15356
- bl_ui/space_view3d_toolbar/__init__.pyi +12520 -4647
- bl_ui/temp_anim_layers/__init__.pyi +129 -42
- bl_ui/utils/__init__.pyi +28 -20
- bl_ui_utils/bug_report_url/__init__.pyi +1 -1
- bl_ui_utils/layout/__init__.pyi +1 -1
- blend_render_info/__init__.pyi +1 -1
- blf/__init__.pyi +4 -4
- bmesh/geometry/__init__.pyi +2 -3
- bmesh/ops/__init__.pyi +372 -419
- bmesh/types/__init__.pyi +38 -38
- bmesh/utils/__init__.pyi +10 -13
- bpy/app/__init__.pyi +4 -4
- bpy/app/handlers/__init__.pyi +36 -36
- bpy/app/icons/__init__.pyi +8 -8
- bpy/app/timers/__init__.pyi +10 -10
- bpy/app/translations/__init__.pyi +20 -22
- bpy/msgbus/__init__.pyi +2 -4
- bpy/ops/action/__init__.pyi +316 -394
- bpy/ops/anim/__init__.pyi +442 -548
- bpy/ops/armature/__init__.pyi +374 -470
- bpy/ops/asset/__init__.pyi +152 -184
- bpy/ops/bl_pkg/__init__.pyi +221 -272
- bpy/ops/boid/__init__.pyi +50 -66
- bpy/ops/brush/__init__.pyi +72 -90
- bpy/ops/buttons/__init__.pyi +132 -144
- bpy/ops/cachefile/__init__.pyi +128 -138
- bpy/ops/camera/__init__.pyi +26 -30
- bpy/ops/clip/__init__.pyi +777 -964
- bpy/ops/cloth/__init__.pyi +12 -14
- bpy/ops/collection/__init__.pyi +68 -86
- bpy/ops/console/__init__.pyi +158 -200
- bpy/ops/constraint/__init__.pyi +178 -214
- bpy/ops/curve/__init__.pyi +473 -576
- bpy/ops/curves/__init__.pyi +247 -302
- bpy/ops/cycles/__init__.pyi +28 -34
- bpy/ops/dpaint/__init__.pyi +34 -44
- bpy/ops/ed/__init__.pyi +126 -150
- bpy/ops/export_anim/__init__.pyi +22 -24
- bpy/ops/export_scene/__init__.pyi +302 -336
- bpy/ops/file/__init__.pyi +352 -432
- bpy/ops/fluid/__init__.pyi +90 -118
- bpy/ops/font/__init__.pyi +258 -304
- bpy/ops/geometry/__init__.pyi +100 -120
- bpy/ops/gizmogroup/__init__.pyi +22 -26
- bpy/ops/gpencil/__init__.pyi +1469 -1778
- bpy/ops/graph/__init__.pyi +644 -776
- bpy/ops/grease_pencil/__init__.pyi +597 -748
- bpy/ops/image/__init__.pyi +648 -744
- bpy/ops/import_anim/__init__.pyi +30 -32
- bpy/ops/import_curve/__init__.pyi +10 -12
- bpy/ops/import_scene/__init__.pyi +88 -96
- bpy/ops/info/__init__.pyi +60 -74
- bpy/ops/lattice/__init__.pyi +64 -80
- bpy/ops/marker/__init__.pyi +108 -130
- bpy/ops/mask/__init__.pyi +322 -402
- bpy/ops/material/__init__.pyi +18 -24
- bpy/ops/mball/__init__.pyi +70 -86
- bpy/ops/mesh/__init__.pyi +1986 -2322
- bpy/ops/nla/__init__.pyi +333 -411
- bpy/ops/node/__init__.pyi +886 -1100
- bpy/ops/object/__init__.pyi +2585 -3078
- bpy/ops/outliner/__init__.pyi +498 -636
- bpy/ops/paint/__init__.pyi +565 -680
- bpy/ops/paintcurve/__init__.pyi +64 -80
- bpy/ops/palette/__init__.pyi +50 -64
- bpy/ops/particle/__init__.pyi +267 -340
- bpy/ops/pose/__init__.pyi +336 -414
- bpy/ops/poselib/__init__.pyi +72 -90
- bpy/ops/preferences/__init__.pyi +386 -463
- bpy/ops/ptcache/__init__.pyi +46 -60
- bpy/ops/render/__init__.pyi +130 -154
- bpy/ops/rigidbody/__init__.pyi +102 -128
- bpy/ops/scene/__init__.pyi +280 -358
- bpy/ops/screen/__init__.pyi +382 -460
- bpy/ops/script/__init__.pyi +24 -30
- bpy/ops/sculpt/__init__.pyi +458 -532
- bpy/ops/sculpt_curves/__init__.pyi +41 -50
- bpy/ops/sequencer/__init__.pyi +1066 -1244
- bpy/ops/sound/__init__.pyi +216 -230
- bpy/ops/spreadsheet/__init__.pyi +30 -38
- bpy/ops/surface/__init__.pyi +108 -120
- bpy/ops/text/__init__.pyi +390 -476
- bpy/ops/text_editor/__init__.pyi +12 -14
- bpy/ops/texture/__init__.pyi +26 -34
- bpy/ops/transform/__init__.pyi +792 -878
- bpy/ops/ui/__init__.pyi +228 -294
- bpy/ops/uilist/__init__.pyi +32 -38
- bpy/ops/uv/__init__.pyi +602 -704
- bpy/ops/view2d/__init__.pyi +156 -184
- bpy/ops/view3d/__init__.pyi +582 -718
- bpy/ops/wm/__init__.pyi +2680 -2928
- bpy/ops/workspace/__init__.pyi +46 -60
- bpy/ops/world/__init__.pyi +12 -16
- bpy/path/__init__.pyi +179 -75
- bpy/props/__init__.pyi +261 -263
- bpy/types/__init__.pyi +17056 -21951
- bpy/utils/__init__.pyi +242 -118
- bpy/utils/previews/__init__.pyi +58 -28
- bpy/utils/units/__init__.pyi +20 -20
- bpy_extras/anim_utils/__init__.pyi +68 -28
- bpy_extras/bmesh_utils/__init__.pyi +8 -2
- bpy_extras/extensions/junction_module/__init__.pyi +5 -2
- bpy_extras/id_map_utils/__init__.pyi +3 -3
- bpy_extras/image_utils/__init__.pyi +44 -11
- bpy_extras/io_utils/__init__.pyi +113 -18
- bpy_extras/keyconfig_utils/__init__.pyi +2 -2
- bpy_extras/mesh_utils/__init__.pyi +71 -19
- bpy_extras/node_shader_utils/__init__.pyi +9 -4
- bpy_extras/node_utils/__init__.pyi +9 -2
- bpy_extras/object_utils/__init__.pyi +71 -12
- bpy_extras/view3d_utils/__init__.pyi +80 -10
- bpy_extras/wm_utils/progress_report/__init__.pyi +13 -10
- bpy_types/__init__.pyi +4197 -1333
- console_python/__init__.pyi +6 -1
- {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240517.dist-info}/METADATA +1 -1
- fake_bpy_module-20240517.dist-info/RECORD +353 -0
- freestyle/chainingiterators/__init__.pyi +4 -4
- freestyle/shaders/__init__.pyi +2 -2
- freestyle/types/__init__.pyi +84 -96
- freestyle/utils/ContextFunctions/__init__.pyi +2 -2
- freestyle/utils/__init__.pyi +3 -3
- gpu/matrix/__init__.pyi +6 -8
- gpu/state/__init__.pyi +2 -2
- gpu/types/__init__.pyi +12 -12
- gpu_extras/presets/__init__.pyi +2 -5
- graphviz_export/__init__.pyi +4 -2
- idprop/types/__init__.pyi +2 -2
- imbuf/__init__.pyi +4 -4
- keyingsets_builtins/__init__.pyi +2688 -839
- mathutils/__init__.pyi +194 -238
- mathutils/bvhtree/__init__.pyi +4 -4
- mathutils/geometry/__init__.pyi +153 -155
- mathutils/kdtree/__init__.pyi +8 -12
- mathutils/noise/__init__.pyi +26 -26
- nodeitems_utils/__init__.pyi +1 -1
- rna_info/__init__.pyi +17 -15
- rna_keymap_ui/__init__.pyi +1 -1
- rna_prop_ui/__init__.pyi +16 -14
- rna_xml/__init__.pyi +12 -12
- _bpy_internal/freedesktop/py.typed +0 -0
- bl_app_override/helpers/py.typed +0 -0
- bl_console_utils/autocomplete/complete_calltip/py.typed +0 -0
- bl_console_utils/autocomplete/complete_import/py.typed +0 -0
- bl_console_utils/autocomplete/complete_namespace/py.typed +0 -0
- bl_console_utils/autocomplete/intellisense/py.typed +0 -0
- bl_console_utils/autocomplete/py.typed +0 -0
- bl_i18n_utils/bl_extract_messages/py.typed +0 -0
- bl_i18n_utils/merge_po/py.typed +0 -0
- bl_i18n_utils/settings/py.typed +0 -0
- bl_i18n_utils/utils/py.typed +0 -0
- bl_i18n_utils/utils_cli/py.typed +0 -0
- bl_i18n_utils/utils_languages_menu/py.typed +0 -0
- bl_i18n_utils/utils_rtl/py.typed +0 -0
- bl_keymap_utils/io/py.typed +0 -0
- bl_keymap_utils/keymap_from_toolbar/py.typed +0 -0
- bl_keymap_utils/keymap_hierarchy/py.typed +0 -0
- bl_keymap_utils/platform_helpers/py.typed +0 -0
- bl_keymap_utils/versioning/py.typed +0 -0
- bl_operators/add_mesh_torus/py.typed +0 -0
- bl_operators/anim/py.typed +0 -0
- bl_operators/assets/py.typed +0 -0
- bl_operators/bmesh/find_adjacent/py.typed +0 -0
- bl_operators/bmesh/py.typed +0 -0
- bl_operators/clip/py.typed +0 -0
- bl_operators/console/py.typed +0 -0
- bl_operators/constraint/py.typed +0 -0
- bl_operators/file/py.typed +0 -0
- bl_operators/freestyle/py.typed +0 -0
- bl_operators/geometry_nodes/py.typed +0 -0
- bl_operators/image/py.typed +0 -0
- bl_operators/mesh/py.typed +0 -0
- bl_operators/node/py.typed +0 -0
- bl_operators/object/py.typed +0 -0
- bl_operators/object_align/py.typed +0 -0
- bl_operators/object_quick_effects/py.typed +0 -0
- bl_operators/object_randomize_transform/py.typed +0 -0
- bl_operators/presets/py.typed +0 -0
- bl_operators/rigidbody/py.typed +0 -0
- bl_operators/screen_play_rendered_anim/py.typed +0 -0
- bl_operators/sequencer/py.typed +0 -0
- bl_operators/spreadsheet/py.typed +0 -0
- bl_operators/userpref/py.typed +0 -0
- bl_operators/uvcalc_follow_active/py.typed +0 -0
- bl_operators/uvcalc_lightmap/py.typed +0 -0
- bl_operators/uvcalc_transform/py.typed +0 -0
- bl_operators/vertexpaint_dirt/py.typed +0 -0
- bl_operators/view3d/py.typed +0 -0
- bl_operators/wm/py.typed +0 -0
- bl_operators/world/py.typed +0 -0
- bl_previews_utils/bl_previews_render/py.typed +0 -0
- bl_rna_utils/data_path/py.typed +0 -0
- bl_text_utils/external_editor/py.typed +0 -0
- bl_ui/anim/py.typed +0 -0
- bl_ui/asset_shelf/py.typed +0 -0
- bl_ui/generic_ui_list/py.typed +0 -0
- bl_ui/node_add_menu/py.typed +0 -0
- bl_ui/node_add_menu_compositor/py.typed +0 -0
- bl_ui/node_add_menu_geometry/py.typed +0 -0
- bl_ui/node_add_menu_shader/py.typed +0 -0
- bl_ui/node_add_menu_texture/py.typed +0 -0
- bl_ui/properties_animviz/py.typed +0 -0
- bl_ui/properties_collection/py.typed +0 -0
- bl_ui/properties_constraint/py.typed +0 -0
- bl_ui/properties_data_armature/py.typed +0 -0
- bl_ui/properties_data_bone/py.typed +0 -0
- bl_ui/properties_data_camera/py.typed +0 -0
- bl_ui/properties_data_curve/py.typed +0 -0
- bl_ui/properties_data_curves/py.typed +0 -0
- bl_ui/properties_data_empty/py.typed +0 -0
- bl_ui/properties_data_gpencil/py.typed +0 -0
- bl_ui/properties_data_grease_pencil/py.typed +0 -0
- bl_ui/properties_data_lattice/py.typed +0 -0
- bl_ui/properties_data_light/py.typed +0 -0
- bl_ui/properties_data_lightprobe/py.typed +0 -0
- bl_ui/properties_data_mesh/py.typed +0 -0
- bl_ui/properties_data_metaball/py.typed +0 -0
- bl_ui/properties_data_modifier/py.typed +0 -0
- bl_ui/properties_data_pointcloud/py.typed +0 -0
- bl_ui/properties_data_shaderfx/py.typed +0 -0
- bl_ui/properties_data_speaker/py.typed +0 -0
- bl_ui/properties_data_volume/py.typed +0 -0
- bl_ui/properties_freestyle/py.typed +0 -0
- bl_ui/properties_grease_pencil_common/py.typed +0 -0
- bl_ui/properties_mask_common/py.typed +0 -0
- bl_ui/properties_material/py.typed +0 -0
- bl_ui/properties_material_gpencil/py.typed +0 -0
- bl_ui/properties_object/py.typed +0 -0
- bl_ui/properties_output/py.typed +0 -0
- bl_ui/properties_paint_common/py.typed +0 -0
- bl_ui/properties_particle/py.typed +0 -0
- bl_ui/properties_physics_cloth/py.typed +0 -0
- bl_ui/properties_physics_common/py.typed +0 -0
- bl_ui/properties_physics_dynamicpaint/py.typed +0 -0
- bl_ui/properties_physics_field/py.typed +0 -0
- bl_ui/properties_physics_fluid/py.typed +0 -0
- bl_ui/properties_physics_geometry_nodes/py.typed +0 -0
- bl_ui/properties_physics_rigidbody/py.typed +0 -0
- bl_ui/properties_physics_rigidbody_constraint/py.typed +0 -0
- bl_ui/properties_physics_softbody/py.typed +0 -0
- bl_ui/properties_render/py.typed +0 -0
- bl_ui/properties_scene/py.typed +0 -0
- bl_ui/properties_texture/py.typed +0 -0
- bl_ui/properties_view_layer/py.typed +0 -0
- bl_ui/properties_workspace/py.typed +0 -0
- bl_ui/properties_world/py.typed +0 -0
- bl_ui/space_clip/py.typed +0 -0
- bl_ui/space_console/py.typed +0 -0
- bl_ui/space_dopesheet/py.typed +0 -0
- bl_ui/space_filebrowser/py.typed +0 -0
- bl_ui/space_graph/py.typed +0 -0
- bl_ui/space_image/py.typed +0 -0
- bl_ui/space_info/py.typed +0 -0
- bl_ui/space_nla/py.typed +0 -0
- bl_ui/space_node/py.typed +0 -0
- bl_ui/space_outliner/py.typed +0 -0
- bl_ui/space_properties/py.typed +0 -0
- bl_ui/space_sequencer/py.typed +0 -0
- bl_ui/space_spreadsheet/py.typed +0 -0
- bl_ui/space_statusbar/py.typed +0 -0
- bl_ui/space_text/py.typed +0 -0
- bl_ui/space_time/py.typed +0 -0
- bl_ui/space_toolsystem_common/py.typed +0 -0
- bl_ui/space_toolsystem_toolbar/py.typed +0 -0
- bl_ui/space_topbar/py.typed +0 -0
- bl_ui/space_userpref/py.typed +0 -0
- bl_ui/space_view3d/py.typed +0 -0
- bl_ui/space_view3d_toolbar/py.typed +0 -0
- bl_ui/temp_anim_layers/py.typed +0 -0
- bl_ui/utils/py.typed +0 -0
- bl_ui_utils/bug_report_url/py.typed +0 -0
- bl_ui_utils/layout/py.typed +0 -0
- bmesh/geometry/py.typed +0 -0
- bmesh/ops/py.typed +0 -0
- bmesh/types/py.typed +0 -0
- bmesh/utils/py.typed +0 -0
- bpy/app/handlers/py.typed +0 -0
- bpy/app/icons/py.typed +0 -0
- bpy/app/py.typed +0 -0
- bpy/app/timers/py.typed +0 -0
- bpy/app/translations/py.typed +0 -0
- bpy/msgbus/py.typed +0 -0
- bpy/ops/action/py.typed +0 -0
- bpy/ops/anim/py.typed +0 -0
- bpy/ops/armature/py.typed +0 -0
- bpy/ops/asset/py.typed +0 -0
- bpy/ops/bl_pkg/py.typed +0 -0
- bpy/ops/boid/py.typed +0 -0
- bpy/ops/brush/py.typed +0 -0
- bpy/ops/buttons/py.typed +0 -0
- bpy/ops/cachefile/py.typed +0 -0
- bpy/ops/camera/py.typed +0 -0
- bpy/ops/clip/py.typed +0 -0
- bpy/ops/cloth/py.typed +0 -0
- bpy/ops/collection/py.typed +0 -0
- bpy/ops/console/py.typed +0 -0
- bpy/ops/constraint/py.typed +0 -0
- bpy/ops/curve/py.typed +0 -0
- bpy/ops/curves/py.typed +0 -0
- bpy/ops/cycles/py.typed +0 -0
- bpy/ops/dpaint/py.typed +0 -0
- bpy/ops/ed/py.typed +0 -0
- bpy/ops/export_anim/py.typed +0 -0
- bpy/ops/export_scene/py.typed +0 -0
- bpy/ops/file/py.typed +0 -0
- bpy/ops/fluid/py.typed +0 -0
- bpy/ops/font/py.typed +0 -0
- bpy/ops/geometry/py.typed +0 -0
- bpy/ops/gizmogroup/py.typed +0 -0
- bpy/ops/gpencil/py.typed +0 -0
- bpy/ops/graph/py.typed +0 -0
- bpy/ops/grease_pencil/py.typed +0 -0
- bpy/ops/image/py.typed +0 -0
- bpy/ops/import_anim/py.typed +0 -0
- bpy/ops/import_curve/py.typed +0 -0
- bpy/ops/import_scene/py.typed +0 -0
- bpy/ops/info/py.typed +0 -0
- bpy/ops/lattice/py.typed +0 -0
- bpy/ops/marker/py.typed +0 -0
- bpy/ops/mask/py.typed +0 -0
- bpy/ops/material/py.typed +0 -0
- bpy/ops/mball/py.typed +0 -0
- bpy/ops/mesh/py.typed +0 -0
- bpy/ops/nla/py.typed +0 -0
- bpy/ops/node/py.typed +0 -0
- bpy/ops/object/py.typed +0 -0
- bpy/ops/outliner/py.typed +0 -0
- bpy/ops/paint/py.typed +0 -0
- bpy/ops/paintcurve/py.typed +0 -0
- bpy/ops/palette/py.typed +0 -0
- bpy/ops/particle/py.typed +0 -0
- bpy/ops/pose/py.typed +0 -0
- bpy/ops/poselib/py.typed +0 -0
- bpy/ops/preferences/py.typed +0 -0
- bpy/ops/ptcache/py.typed +0 -0
- bpy/ops/py.typed +0 -0
- bpy/ops/render/py.typed +0 -0
- bpy/ops/rigidbody/py.typed +0 -0
- bpy/ops/scene/py.typed +0 -0
- bpy/ops/screen/py.typed +0 -0
- bpy/ops/script/py.typed +0 -0
- bpy/ops/sculpt/py.typed +0 -0
- bpy/ops/sculpt_curves/py.typed +0 -0
- bpy/ops/sequencer/py.typed +0 -0
- bpy/ops/sound/py.typed +0 -0
- bpy/ops/spreadsheet/py.typed +0 -0
- bpy/ops/surface/py.typed +0 -0
- bpy/ops/text/py.typed +0 -0
- bpy/ops/text_editor/py.typed +0 -0
- bpy/ops/texture/py.typed +0 -0
- bpy/ops/transform/py.typed +0 -0
- bpy/ops/ui/py.typed +0 -0
- bpy/ops/uilist/py.typed +0 -0
- bpy/ops/uv/py.typed +0 -0
- bpy/ops/view2d/py.typed +0 -0
- bpy/ops/view3d/py.typed +0 -0
- bpy/ops/wm/py.typed +0 -0
- bpy/ops/workspace/py.typed +0 -0
- bpy/ops/world/py.typed +0 -0
- bpy/path/py.typed +0 -0
- bpy/props/py.typed +0 -0
- bpy/types/py.typed +0 -0
- bpy/utils/previews/py.typed +0 -0
- bpy/utils/py.typed +0 -0
- bpy/utils/units/py.typed +0 -0
- bpy_extras/anim_utils/py.typed +0 -0
- bpy_extras/asset_utils/py.typed +0 -0
- bpy_extras/bmesh_utils/py.typed +0 -0
- bpy_extras/extensions/junction_module/py.typed +0 -0
- bpy_extras/extensions/py.typed +0 -0
- bpy_extras/id_map_utils/py.typed +0 -0
- bpy_extras/image_utils/py.typed +0 -0
- bpy_extras/io_utils/py.typed +0 -0
- bpy_extras/keyconfig_utils/py.typed +0 -0
- bpy_extras/mesh_utils/py.typed +0 -0
- bpy_extras/node_shader_utils/py.typed +0 -0
- bpy_extras/node_utils/py.typed +0 -0
- bpy_extras/object_utils/py.typed +0 -0
- bpy_extras/view3d_utils/py.typed +0 -0
- bpy_extras/wm_utils/progress_report/py.typed +0 -0
- bpy_extras/wm_utils/py.typed +0 -0
- fake_bpy_module-20240516.dist-info/RECORD +0 -618
- freestyle/chainingiterators/py.typed +0 -0
- freestyle/functions/py.typed +0 -0
- freestyle/predicates/py.typed +0 -0
- freestyle/shaders/py.typed +0 -0
- freestyle/types/py.typed +0 -0
- freestyle/utils/ContextFunctions/py.typed +0 -0
- freestyle/utils/py.typed +0 -0
- gpu/capabilities/py.typed +0 -0
- gpu/matrix/py.typed +0 -0
- gpu/platform/py.typed +0 -0
- gpu/select/py.typed +0 -0
- gpu/shader/py.typed +0 -0
- gpu/state/py.typed +0 -0
- gpu/texture/py.typed +0 -0
- gpu/types/py.typed +0 -0
- gpu_extras/batch/py.typed +0 -0
- gpu_extras/presets/py.typed +0 -0
- idprop/types/py.typed +0 -0
- imbuf/types/py.typed +0 -0
- mathutils/bvhtree/py.typed +0 -0
- mathutils/geometry/py.typed +0 -0
- mathutils/interpolate/py.typed +0 -0
- mathutils/kdtree/py.typed +0 -0
- mathutils/noise/py.typed +0 -0
- {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240517.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240517.dist-info}/top_level.txt +0 -0
mathutils/__init__.pyi
CHANGED
|
@@ -56,10 +56,10 @@ class Color:
|
|
|
56
56
|
:type: float
|
|
57
57
|
"""
|
|
58
58
|
|
|
59
|
-
hsv: typing.
|
|
59
|
+
hsv: typing.Sequence[float] | Vector
|
|
60
60
|
""" HSV Values in [0, 1].
|
|
61
61
|
|
|
62
|
-
:type: typing.
|
|
62
|
+
:type: typing.Sequence[float] | Vector
|
|
63
63
|
"""
|
|
64
64
|
|
|
65
65
|
is_frozen: bool
|
|
@@ -188,121 +188,121 @@ class Color:
|
|
|
188
188
|
"""
|
|
189
189
|
...
|
|
190
190
|
|
|
191
|
-
def __add__(self, other: typing.
|
|
191
|
+
def __add__(self, other: typing.Sequence[float] | Color) -> Color:
|
|
192
192
|
"""
|
|
193
193
|
|
|
194
194
|
:param other:
|
|
195
|
-
:type other: typing.
|
|
195
|
+
:type other: typing.Sequence[float] | Color
|
|
196
196
|
:return:
|
|
197
197
|
:rtype: Color
|
|
198
198
|
"""
|
|
199
199
|
...
|
|
200
200
|
|
|
201
|
-
def __sub__(self, other: typing.
|
|
201
|
+
def __sub__(self, other: typing.Sequence[float] | Color) -> Color:
|
|
202
202
|
"""
|
|
203
203
|
|
|
204
204
|
:param other:
|
|
205
|
-
:type other: typing.
|
|
205
|
+
:type other: typing.Sequence[float] | Color
|
|
206
206
|
:return:
|
|
207
207
|
:rtype: Color
|
|
208
208
|
"""
|
|
209
209
|
...
|
|
210
210
|
|
|
211
|
-
def __mul__(self, other:
|
|
211
|
+
def __mul__(self, other: int | float) -> Color:
|
|
212
212
|
"""
|
|
213
213
|
|
|
214
214
|
:param other:
|
|
215
|
-
:type other:
|
|
215
|
+
:type other: int | float
|
|
216
216
|
:return:
|
|
217
217
|
:rtype: Color
|
|
218
218
|
"""
|
|
219
219
|
...
|
|
220
220
|
|
|
221
|
-
def __truediv__(self, other:
|
|
221
|
+
def __truediv__(self, other: int | float) -> Color:
|
|
222
222
|
"""
|
|
223
223
|
|
|
224
224
|
:param other:
|
|
225
|
-
:type other:
|
|
225
|
+
:type other: int | float
|
|
226
226
|
:return:
|
|
227
227
|
:rtype: Color
|
|
228
228
|
"""
|
|
229
229
|
...
|
|
230
230
|
|
|
231
|
-
def __radd__(self, other: typing.
|
|
231
|
+
def __radd__(self, other: typing.Sequence[float] | Color) -> Color:
|
|
232
232
|
"""
|
|
233
233
|
|
|
234
234
|
:param other:
|
|
235
|
-
:type other: typing.
|
|
235
|
+
:type other: typing.Sequence[float] | Color
|
|
236
236
|
:return:
|
|
237
237
|
:rtype: Color
|
|
238
238
|
"""
|
|
239
239
|
...
|
|
240
240
|
|
|
241
|
-
def __rsub__(self, other: typing.
|
|
241
|
+
def __rsub__(self, other: typing.Sequence[float] | Color) -> Color:
|
|
242
242
|
"""
|
|
243
243
|
|
|
244
244
|
:param other:
|
|
245
|
-
:type other: typing.
|
|
245
|
+
:type other: typing.Sequence[float] | Color
|
|
246
246
|
:return:
|
|
247
247
|
:rtype: Color
|
|
248
248
|
"""
|
|
249
249
|
...
|
|
250
250
|
|
|
251
|
-
def __rmul__(self, other:
|
|
251
|
+
def __rmul__(self, other: int | float) -> Color:
|
|
252
252
|
"""
|
|
253
253
|
|
|
254
254
|
:param other:
|
|
255
|
-
:type other:
|
|
255
|
+
:type other: int | float
|
|
256
256
|
:return:
|
|
257
257
|
:rtype: Color
|
|
258
258
|
"""
|
|
259
259
|
...
|
|
260
260
|
|
|
261
|
-
def __rtruediv__(self, other:
|
|
261
|
+
def __rtruediv__(self, other: int | float) -> Color:
|
|
262
262
|
"""
|
|
263
263
|
|
|
264
264
|
:param other:
|
|
265
|
-
:type other:
|
|
265
|
+
:type other: int | float
|
|
266
266
|
:return:
|
|
267
267
|
:rtype: Color
|
|
268
268
|
"""
|
|
269
269
|
...
|
|
270
270
|
|
|
271
|
-
def __iadd__(self, other: typing.
|
|
271
|
+
def __iadd__(self, other: typing.Sequence[float] | Color) -> Color:
|
|
272
272
|
"""
|
|
273
273
|
|
|
274
274
|
:param other:
|
|
275
|
-
:type other: typing.
|
|
275
|
+
:type other: typing.Sequence[float] | Color
|
|
276
276
|
:return:
|
|
277
277
|
:rtype: Color
|
|
278
278
|
"""
|
|
279
279
|
...
|
|
280
280
|
|
|
281
|
-
def __isub__(self, other: typing.
|
|
281
|
+
def __isub__(self, other: typing.Sequence[float] | Color) -> Color:
|
|
282
282
|
"""
|
|
283
283
|
|
|
284
284
|
:param other:
|
|
285
|
-
:type other: typing.
|
|
285
|
+
:type other: typing.Sequence[float] | Color
|
|
286
286
|
:return:
|
|
287
287
|
:rtype: Color
|
|
288
288
|
"""
|
|
289
289
|
...
|
|
290
290
|
|
|
291
|
-
def __imul__(self, other:
|
|
291
|
+
def __imul__(self, other: int | float) -> Color:
|
|
292
292
|
"""
|
|
293
293
|
|
|
294
294
|
:param other:
|
|
295
|
-
:type other:
|
|
295
|
+
:type other: int | float
|
|
296
296
|
:return:
|
|
297
297
|
:rtype: Color
|
|
298
298
|
"""
|
|
299
299
|
...
|
|
300
300
|
|
|
301
|
-
def __itruediv__(self, other:
|
|
301
|
+
def __itruediv__(self, other: int | float) -> Color:
|
|
302
302
|
"""
|
|
303
303
|
|
|
304
304
|
:param other:
|
|
305
|
-
:type other:
|
|
305
|
+
:type other: int | float
|
|
306
306
|
:return:
|
|
307
307
|
:rtype: Color
|
|
308
308
|
"""
|
|
@@ -389,19 +389,17 @@ class Euler:
|
|
|
389
389
|
|
|
390
390
|
def rotate(
|
|
391
391
|
self,
|
|
392
|
-
other: typing.
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
Matrix,
|
|
399
|
-
],
|
|
392
|
+
other: typing.Sequence[float]
|
|
393
|
+
| Euler
|
|
394
|
+
| typing.Sequence[float]
|
|
395
|
+
| Quaternion
|
|
396
|
+
| typing.Sequence[float]
|
|
397
|
+
| Matrix,
|
|
400
398
|
):
|
|
401
399
|
"""Rotates the euler by another mathutils value.
|
|
402
400
|
|
|
403
401
|
:param other: rotation component of mathutils value
|
|
404
|
-
:type other: typing.
|
|
402
|
+
:type other: typing.Sequence[float] | Euler | typing.Sequence[float] | Quaternion | typing.Sequence[float] | Matrix
|
|
405
403
|
"""
|
|
406
404
|
...
|
|
407
405
|
|
|
@@ -523,11 +521,11 @@ class Matrix:
|
|
|
523
521
|
"""
|
|
524
522
|
|
|
525
523
|
@classmethod
|
|
526
|
-
def Diagonal(cls, vector: typing.
|
|
524
|
+
def Diagonal(cls, vector: typing.Sequence[float] | Vector) -> Matrix:
|
|
527
525
|
"""Create a diagonal (scaling) matrix using the values from the vector.
|
|
528
526
|
|
|
529
527
|
:param vector: The vector of values for the diagonal.
|
|
530
|
-
:type vector: typing.
|
|
528
|
+
:type vector: typing.Sequence[float] | Vector
|
|
531
529
|
:return: A diagonal matrix.
|
|
532
530
|
:rtype: Matrix
|
|
533
531
|
"""
|
|
@@ -547,37 +545,37 @@ class Matrix:
|
|
|
547
545
|
@classmethod
|
|
548
546
|
def LocRotScale(
|
|
549
547
|
cls,
|
|
550
|
-
location: typing.
|
|
551
|
-
rotation: typing.
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
scale: typing.
|
|
548
|
+
location: typing.Sequence[float] | Vector | None,
|
|
549
|
+
rotation: typing.Sequence[float]
|
|
550
|
+
| Quaternion
|
|
551
|
+
| typing.Sequence[float]
|
|
552
|
+
| Euler
|
|
553
|
+
| None,
|
|
554
|
+
scale: typing.Sequence[float] | Vector | None,
|
|
557
555
|
):
|
|
558
556
|
"""Create a matrix combining translation, rotation and scale,
|
|
559
557
|
acting as the inverse of the decompose() method.Any of the inputs may be replaced with None if not needed.
|
|
560
558
|
|
|
561
559
|
:param location: The translation component.
|
|
562
|
-
:type location: typing.
|
|
560
|
+
:type location: typing.Sequence[float] | Vector | None
|
|
563
561
|
:param rotation: The rotation component.
|
|
564
|
-
:type rotation: typing.
|
|
562
|
+
:type rotation: typing.Sequence[float] | Quaternion | typing.Sequence[float] | Euler | None
|
|
565
563
|
:param scale: The scale component.
|
|
566
|
-
:type scale: typing.
|
|
564
|
+
:type scale: typing.Sequence[float] | Vector | None
|
|
567
565
|
:return: Combined transformation matrix.
|
|
568
566
|
"""
|
|
569
567
|
...
|
|
570
568
|
|
|
571
569
|
@classmethod
|
|
572
570
|
def OrthoProjection(
|
|
573
|
-
cls, axis:
|
|
571
|
+
cls, axis: str | typing.Sequence[float] | Vector, size: int
|
|
574
572
|
) -> Matrix:
|
|
575
573
|
"""Create a matrix to represent an orthographic projection.
|
|
576
574
|
|
|
577
575
|
:param axis: Can be any of the following: ['X', 'Y', 'XY', 'XZ', 'YZ'],
|
|
578
576
|
where a single axis is for a 2D matrix.
|
|
579
577
|
Or a vector for an arbitrary axis
|
|
580
|
-
:type axis:
|
|
578
|
+
:type axis: str | typing.Sequence[float] | Vector
|
|
581
579
|
:param size: The size of the projection matrix to construct [2, 4].
|
|
582
580
|
:type size: int
|
|
583
581
|
:return: A new projection matrix.
|
|
@@ -587,10 +585,7 @@ class Matrix:
|
|
|
587
585
|
|
|
588
586
|
@classmethod
|
|
589
587
|
def Rotation(
|
|
590
|
-
cls,
|
|
591
|
-
angle: float,
|
|
592
|
-
size: int,
|
|
593
|
-
axis: typing.Union[str, typing.Sequence[float], Vector],
|
|
588
|
+
cls, angle: float, size: int, axis: str | typing.Sequence[float] | Vector
|
|
594
589
|
) -> Matrix:
|
|
595
590
|
"""Create a matrix representing a rotation.
|
|
596
591
|
|
|
@@ -600,7 +595,7 @@ class Matrix:
|
|
|
600
595
|
:type size: int
|
|
601
596
|
:param axis: a string in ['X', 'Y', 'Z'] or a 3D Vector Object
|
|
602
597
|
(optional when size is 2).
|
|
603
|
-
:type axis:
|
|
598
|
+
:type axis: str | typing.Sequence[float] | Vector
|
|
604
599
|
:return: A new rotation matrix.
|
|
605
600
|
:rtype: Matrix
|
|
606
601
|
"""
|
|
@@ -608,10 +603,7 @@ class Matrix:
|
|
|
608
603
|
|
|
609
604
|
@classmethod
|
|
610
605
|
def Scale(
|
|
611
|
-
cls,
|
|
612
|
-
factor: float,
|
|
613
|
-
size: int,
|
|
614
|
-
axis: typing.Union[typing.Sequence[float], Vector],
|
|
606
|
+
cls, factor: float, size: int, axis: typing.Sequence[float] | Vector
|
|
615
607
|
) -> Matrix:
|
|
616
608
|
"""Create a matrix representing a scaling.
|
|
617
609
|
|
|
@@ -620,7 +612,7 @@ class Matrix:
|
|
|
620
612
|
:param size: The size of the scale matrix to construct [2, 4].
|
|
621
613
|
:type size: int
|
|
622
614
|
:param axis: Direction to influence scale. (optional).
|
|
623
|
-
:type axis: typing.
|
|
615
|
+
:type axis: typing.Sequence[float] | Vector
|
|
624
616
|
:return: A new scale matrix.
|
|
625
617
|
:rtype: Matrix
|
|
626
618
|
"""
|
|
@@ -644,13 +636,11 @@ class Matrix:
|
|
|
644
636
|
...
|
|
645
637
|
|
|
646
638
|
@classmethod
|
|
647
|
-
def Translation(
|
|
648
|
-
cls, vector: typing.Union[typing.Sequence[float], Vector]
|
|
649
|
-
) -> Matrix:
|
|
639
|
+
def Translation(cls, vector: typing.Sequence[float] | Vector) -> Matrix:
|
|
650
640
|
"""Create a matrix representing a translation.
|
|
651
641
|
|
|
652
642
|
:param vector: The translation vector.
|
|
653
|
-
:type vector: typing.
|
|
643
|
+
:type vector: typing.Sequence[float] | Vector
|
|
654
644
|
:return: An identity matrix with a translation.
|
|
655
645
|
:rtype: Matrix
|
|
656
646
|
"""
|
|
@@ -676,11 +666,11 @@ class Matrix:
|
|
|
676
666
|
"""
|
|
677
667
|
...
|
|
678
668
|
|
|
679
|
-
def decompose(self) ->
|
|
669
|
+
def decompose(self) -> tuple[Vector, Quaternion, Vector]:
|
|
680
670
|
"""Return the translation, rotation, and scale components of this matrix.
|
|
681
671
|
|
|
682
672
|
:return: tuple of translation, rotation, and scale
|
|
683
|
-
:rtype:
|
|
673
|
+
:rtype: tuple[Vector, Quaternion, Vector]
|
|
684
674
|
"""
|
|
685
675
|
...
|
|
686
676
|
|
|
@@ -704,12 +694,12 @@ class Matrix:
|
|
|
704
694
|
"""Set the matrix to the identity matrix.`Identity matrix <https://en.wikipedia.org/wiki/Identity_matrix>`__ on Wikipedia."""
|
|
705
695
|
...
|
|
706
696
|
|
|
707
|
-
def invert(self, fallback: typing.
|
|
697
|
+
def invert(self, fallback: typing.Sequence[float] | Matrix = None):
|
|
708
698
|
"""Set the matrix to its inverse.`Inverse matrix <https://en.wikipedia.org/wiki/Inverse_matrix>`__ on Wikipedia.
|
|
709
699
|
|
|
710
700
|
:param fallback: Set the matrix to this value when the inverse cannot be calculated
|
|
711
701
|
(instead of raising a `ValueError` exception).
|
|
712
|
-
:type fallback: typing.
|
|
702
|
+
:type fallback: typing.Sequence[float] | Matrix
|
|
713
703
|
"""
|
|
714
704
|
...
|
|
715
705
|
|
|
@@ -742,13 +732,11 @@ class Matrix:
|
|
|
742
732
|
"""
|
|
743
733
|
...
|
|
744
734
|
|
|
745
|
-
def lerp(
|
|
746
|
-
self, other: typing.Union[typing.Sequence[float], Matrix], factor: float
|
|
747
|
-
) -> Matrix:
|
|
735
|
+
def lerp(self, other: typing.Sequence[float] | Matrix, factor: float) -> Matrix:
|
|
748
736
|
"""Returns the interpolation of two matrices. Uses polar decomposition, see "Matrix Animation and Polar Decomposition", Shoemake and Duff, 1992.
|
|
749
737
|
|
|
750
738
|
:param other: value to interpolate with.
|
|
751
|
-
:type other: typing.
|
|
739
|
+
:type other: typing.Sequence[float] | Matrix
|
|
752
740
|
:param factor: The interpolation value in [0.0, 1.0].
|
|
753
741
|
:type factor: float
|
|
754
742
|
:return: The interpolated matrix.
|
|
@@ -774,19 +762,17 @@ class Matrix:
|
|
|
774
762
|
|
|
775
763
|
def rotate(
|
|
776
764
|
self,
|
|
777
|
-
other: typing.
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
Matrix,
|
|
784
|
-
],
|
|
765
|
+
other: typing.Sequence[float]
|
|
766
|
+
| Euler
|
|
767
|
+
| typing.Sequence[float]
|
|
768
|
+
| Quaternion
|
|
769
|
+
| typing.Sequence[float]
|
|
770
|
+
| Matrix,
|
|
785
771
|
):
|
|
786
772
|
"""Rotates the matrix by another mathutils value.
|
|
787
773
|
|
|
788
774
|
:param other: rotation component of mathutils value
|
|
789
|
-
:type other: typing.
|
|
775
|
+
:type other: typing.Sequence[float] | Euler | typing.Sequence[float] | Quaternion | typing.Sequence[float] | Matrix
|
|
790
776
|
"""
|
|
791
777
|
...
|
|
792
778
|
|
|
@@ -815,7 +801,7 @@ class Matrix:
|
|
|
815
801
|
...
|
|
816
802
|
|
|
817
803
|
def to_euler(
|
|
818
|
-
self, order: str, euler_compat: typing.
|
|
804
|
+
self, order: str, euler_compat: typing.Sequence[float] | Euler
|
|
819
805
|
) -> Euler:
|
|
820
806
|
"""Return an Euler representation of the rotation matrix
|
|
821
807
|
(3x3 or 4x4 matrix only).
|
|
@@ -826,7 +812,7 @@ class Matrix:
|
|
|
826
812
|
:param euler_compat: Optional euler argument the new euler will be made
|
|
827
813
|
compatible with (no axis flipping between them).
|
|
828
814
|
Useful for converting a series of matrices to animation curves.
|
|
829
|
-
:type euler_compat: typing.
|
|
815
|
+
:type euler_compat: typing.Sequence[float] | Euler
|
|
830
816
|
:return: Euler representation of the matrix.
|
|
831
817
|
:rtype: Euler
|
|
832
818
|
"""
|
|
@@ -905,108 +891,105 @@ class Matrix:
|
|
|
905
891
|
"""
|
|
906
892
|
...
|
|
907
893
|
|
|
908
|
-
def __add__(self, other: typing.
|
|
894
|
+
def __add__(self, other: typing.Sequence[float] | Matrix) -> Matrix:
|
|
909
895
|
"""
|
|
910
896
|
|
|
911
897
|
:param other:
|
|
912
|
-
:type other: typing.
|
|
898
|
+
:type other: typing.Sequence[float] | Matrix
|
|
913
899
|
:return:
|
|
914
900
|
:rtype: Matrix
|
|
915
901
|
"""
|
|
916
902
|
...
|
|
917
903
|
|
|
918
|
-
def __sub__(self, other: typing.
|
|
904
|
+
def __sub__(self, other: typing.Sequence[float] | Matrix) -> Matrix:
|
|
919
905
|
"""
|
|
920
906
|
|
|
921
907
|
:param other:
|
|
922
|
-
:type other: typing.
|
|
908
|
+
:type other: typing.Sequence[float] | Matrix
|
|
923
909
|
:return:
|
|
924
910
|
:rtype: Matrix
|
|
925
911
|
"""
|
|
926
912
|
...
|
|
927
913
|
|
|
928
|
-
def __mul__(self, other:
|
|
914
|
+
def __mul__(self, other: int | float) -> Matrix:
|
|
929
915
|
"""
|
|
930
916
|
|
|
931
917
|
:param other:
|
|
932
|
-
:type other:
|
|
918
|
+
:type other: int | float
|
|
933
919
|
:return:
|
|
934
920
|
:rtype: Matrix
|
|
935
921
|
"""
|
|
936
922
|
...
|
|
937
923
|
|
|
938
924
|
@typing.overload
|
|
939
|
-
def __matmul__(self, other: typing.
|
|
925
|
+
def __matmul__(self, other: typing.Sequence[float] | Matrix) -> Matrix:
|
|
940
926
|
"""
|
|
941
927
|
|
|
942
928
|
:param other:
|
|
943
|
-
:type other: typing.
|
|
929
|
+
:type other: typing.Sequence[float] | Matrix
|
|
944
930
|
:return:
|
|
945
931
|
:rtype: Matrix
|
|
946
932
|
"""
|
|
947
933
|
...
|
|
948
934
|
|
|
949
935
|
@typing.overload
|
|
950
|
-
def __matmul__(self, other: typing.
|
|
936
|
+
def __matmul__(self, other: typing.Sequence[float] | Vector) -> Vector:
|
|
951
937
|
"""
|
|
952
938
|
|
|
953
939
|
:param other:
|
|
954
|
-
:type other: typing.
|
|
940
|
+
:type other: typing.Sequence[float] | Vector
|
|
955
941
|
:return:
|
|
956
942
|
:rtype: Vector
|
|
957
943
|
"""
|
|
958
944
|
...
|
|
959
945
|
|
|
960
946
|
def __matmul__(
|
|
961
|
-
self,
|
|
962
|
-
|
|
963
|
-
typing.Sequence[float], Matrix, typing.Sequence[float], Vector
|
|
964
|
-
],
|
|
965
|
-
) -> typing.Union[Matrix, Vector]:
|
|
947
|
+
self, other: typing.Sequence[float] | Matrix | typing.Sequence[float] | Vector
|
|
948
|
+
) -> Matrix | Vector:
|
|
966
949
|
"""
|
|
967
950
|
|
|
968
951
|
:param other:
|
|
969
|
-
:type other: typing.
|
|
952
|
+
:type other: typing.Sequence[float] | Matrix | typing.Sequence[float] | Vector
|
|
970
953
|
:return:
|
|
971
|
-
:rtype:
|
|
954
|
+
:rtype: Matrix | Vector
|
|
972
955
|
"""
|
|
973
956
|
...
|
|
974
957
|
|
|
975
|
-
def __radd__(self, other: typing.
|
|
958
|
+
def __radd__(self, other: typing.Sequence[float] | Matrix) -> Matrix:
|
|
976
959
|
"""
|
|
977
960
|
|
|
978
961
|
:param other:
|
|
979
|
-
:type other: typing.
|
|
962
|
+
:type other: typing.Sequence[float] | Matrix
|
|
980
963
|
:return:
|
|
981
964
|
:rtype: Matrix
|
|
982
965
|
"""
|
|
983
966
|
...
|
|
984
967
|
|
|
985
|
-
def __rsub__(self, other: typing.
|
|
968
|
+
def __rsub__(self, other: typing.Sequence[float] | Matrix) -> Matrix:
|
|
986
969
|
"""
|
|
987
970
|
|
|
988
971
|
:param other:
|
|
989
|
-
:type other: typing.
|
|
972
|
+
:type other: typing.Sequence[float] | Matrix
|
|
990
973
|
:return:
|
|
991
974
|
:rtype: Matrix
|
|
992
975
|
"""
|
|
993
976
|
...
|
|
994
977
|
|
|
995
|
-
def __rmul__(self, other:
|
|
978
|
+
def __rmul__(self, other: int | float) -> Matrix:
|
|
996
979
|
"""
|
|
997
980
|
|
|
998
981
|
:param other:
|
|
999
|
-
:type other:
|
|
982
|
+
:type other: int | float
|
|
1000
983
|
:return:
|
|
1001
984
|
:rtype: Matrix
|
|
1002
985
|
"""
|
|
1003
986
|
...
|
|
1004
987
|
|
|
1005
|
-
def __imul__(self, other:
|
|
988
|
+
def __imul__(self, other: int | float) -> Matrix:
|
|
1006
989
|
"""
|
|
1007
990
|
|
|
1008
991
|
:param other:
|
|
1009
|
-
:type other:
|
|
992
|
+
:type other: int | float
|
|
1010
993
|
:return:
|
|
1011
994
|
:rtype: Matrix
|
|
1012
995
|
"""
|
|
@@ -1021,10 +1004,10 @@ class Quaternion:
|
|
|
1021
1004
|
:type: float
|
|
1022
1005
|
"""
|
|
1023
1006
|
|
|
1024
|
-
axis: typing.
|
|
1007
|
+
axis: typing.Sequence[float] | Vector
|
|
1025
1008
|
""" Quaternion axis as a vector.
|
|
1026
1009
|
|
|
1027
|
-
:type: typing.
|
|
1010
|
+
:type: typing.Sequence[float] | Vector
|
|
1028
1011
|
"""
|
|
1029
1012
|
|
|
1030
1013
|
is_frozen: bool
|
|
@@ -1098,23 +1081,21 @@ class Quaternion:
|
|
|
1098
1081
|
"""
|
|
1099
1082
|
...
|
|
1100
1083
|
|
|
1101
|
-
def cross(
|
|
1102
|
-
self, other: typing.Union[typing.Sequence[float], Quaternion]
|
|
1103
|
-
) -> Quaternion:
|
|
1084
|
+
def cross(self, other: typing.Sequence[float] | Quaternion) -> Quaternion:
|
|
1104
1085
|
"""Return the cross product of this quaternion and another.
|
|
1105
1086
|
|
|
1106
1087
|
:param other: The other quaternion to perform the cross product with.
|
|
1107
|
-
:type other: typing.
|
|
1088
|
+
:type other: typing.Sequence[float] | Quaternion
|
|
1108
1089
|
:return: The cross product.
|
|
1109
1090
|
:rtype: Quaternion
|
|
1110
1091
|
"""
|
|
1111
1092
|
...
|
|
1112
1093
|
|
|
1113
|
-
def dot(self, other: typing.
|
|
1094
|
+
def dot(self, other: typing.Sequence[float] | Quaternion) -> float:
|
|
1114
1095
|
"""Return the dot product of this quaternion and another.
|
|
1115
1096
|
|
|
1116
1097
|
:param other: The other quaternion to perform the dot product with.
|
|
1117
|
-
:type other: typing.
|
|
1098
|
+
:type other: typing.Sequence[float] | Quaternion
|
|
1118
1099
|
:return: The dot product.
|
|
1119
1100
|
:rtype: float
|
|
1120
1101
|
"""
|
|
@@ -1170,41 +1151,39 @@ class Quaternion:
|
|
|
1170
1151
|
|
|
1171
1152
|
def rotate(
|
|
1172
1153
|
self,
|
|
1173
|
-
other: typing.
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
Matrix,
|
|
1180
|
-
],
|
|
1154
|
+
other: typing.Sequence[float]
|
|
1155
|
+
| Euler
|
|
1156
|
+
| typing.Sequence[float]
|
|
1157
|
+
| Quaternion
|
|
1158
|
+
| typing.Sequence[float]
|
|
1159
|
+
| Matrix,
|
|
1181
1160
|
):
|
|
1182
1161
|
"""Rotates the quaternion by another mathutils value.
|
|
1183
1162
|
|
|
1184
1163
|
:param other: rotation component of mathutils value
|
|
1185
|
-
:type other: typing.
|
|
1164
|
+
:type other: typing.Sequence[float] | Euler | typing.Sequence[float] | Quaternion | typing.Sequence[float] | Matrix
|
|
1186
1165
|
"""
|
|
1187
1166
|
...
|
|
1188
1167
|
|
|
1189
1168
|
def rotation_difference(
|
|
1190
|
-
self, other: typing.
|
|
1169
|
+
self, other: typing.Sequence[float] | Quaternion
|
|
1191
1170
|
) -> Quaternion:
|
|
1192
1171
|
"""Returns a quaternion representing the rotational difference.
|
|
1193
1172
|
|
|
1194
1173
|
:param other: second quaternion.
|
|
1195
|
-
:type other: typing.
|
|
1174
|
+
:type other: typing.Sequence[float] | Quaternion
|
|
1196
1175
|
:return: the rotational difference between the two quat rotations.
|
|
1197
1176
|
:rtype: Quaternion
|
|
1198
1177
|
"""
|
|
1199
1178
|
...
|
|
1200
1179
|
|
|
1201
1180
|
def slerp(
|
|
1202
|
-
self, other: typing.
|
|
1181
|
+
self, other: typing.Sequence[float] | Quaternion, factor: float
|
|
1203
1182
|
) -> Quaternion:
|
|
1204
1183
|
"""Returns the interpolation of two quaternions.
|
|
1205
1184
|
|
|
1206
1185
|
:param other: value to interpolate with.
|
|
1207
|
-
:type other: typing.
|
|
1186
|
+
:type other: typing.Sequence[float] | Quaternion
|
|
1208
1187
|
:param factor: The interpolation value in [0.0, 1.0].
|
|
1209
1188
|
:type factor: float
|
|
1210
1189
|
:return: The interpolated rotation.
|
|
@@ -1212,16 +1191,16 @@ class Quaternion:
|
|
|
1212
1191
|
"""
|
|
1213
1192
|
...
|
|
1214
1193
|
|
|
1215
|
-
def to_axis_angle(self) ->
|
|
1194
|
+
def to_axis_angle(self) -> tuple[Vector, float]:
|
|
1216
1195
|
"""Return the axis, angle representation of the quaternion.
|
|
1217
1196
|
|
|
1218
1197
|
:return: axis, angle.
|
|
1219
|
-
:rtype:
|
|
1198
|
+
:rtype: tuple[Vector, float]
|
|
1220
1199
|
"""
|
|
1221
1200
|
...
|
|
1222
1201
|
|
|
1223
1202
|
def to_euler(
|
|
1224
|
-
self, order: str, euler_compat: typing.
|
|
1203
|
+
self, order: str, euler_compat: typing.Sequence[float] | Euler
|
|
1225
1204
|
) -> Euler:
|
|
1226
1205
|
"""Return Euler representation of the quaternion.
|
|
1227
1206
|
|
|
@@ -1231,7 +1210,7 @@ class Quaternion:
|
|
|
1231
1210
|
:param euler_compat: Optional euler argument the new euler will be made
|
|
1232
1211
|
compatible with (no axis flipping between them).
|
|
1233
1212
|
Useful for converting a series of matrices to animation curves.
|
|
1234
|
-
:type euler_compat: typing.
|
|
1213
|
+
:type euler_compat: typing.Sequence[float] | Euler
|
|
1235
1214
|
:return: Euler representation of the quaternion.
|
|
1236
1215
|
:rtype: Euler
|
|
1237
1216
|
"""
|
|
@@ -1253,13 +1232,13 @@ class Quaternion:
|
|
|
1253
1232
|
"""
|
|
1254
1233
|
...
|
|
1255
1234
|
|
|
1256
|
-
def to_swing_twist(self, axis) ->
|
|
1235
|
+
def to_swing_twist(self, axis) -> tuple[Quaternion, float]:
|
|
1257
1236
|
"""Split the rotation into a swing quaternion with the specified
|
|
1258
1237
|
axis fixed at zero, and the remaining twist rotation angle.
|
|
1259
1238
|
|
|
1260
1239
|
:param axis: twist axis as a string in ['X', 'Y', 'Z']
|
|
1261
1240
|
:return: swing, twist angle.
|
|
1262
|
-
:rtype:
|
|
1241
|
+
:rtype: tuple[Quaternion, float]
|
|
1263
1242
|
"""
|
|
1264
1243
|
...
|
|
1265
1244
|
|
|
@@ -1300,61 +1279,55 @@ class Quaternion:
|
|
|
1300
1279
|
"""
|
|
1301
1280
|
...
|
|
1302
1281
|
|
|
1303
|
-
def __add__(
|
|
1304
|
-
self, other: typing.Union[typing.Sequence[float], Quaternion]
|
|
1305
|
-
) -> Quaternion:
|
|
1282
|
+
def __add__(self, other: typing.Sequence[float] | Quaternion) -> Quaternion:
|
|
1306
1283
|
"""
|
|
1307
1284
|
|
|
1308
1285
|
:param other:
|
|
1309
|
-
:type other: typing.
|
|
1286
|
+
:type other: typing.Sequence[float] | Quaternion
|
|
1310
1287
|
:return:
|
|
1311
1288
|
:rtype: Quaternion
|
|
1312
1289
|
"""
|
|
1313
1290
|
...
|
|
1314
1291
|
|
|
1315
|
-
def __sub__(
|
|
1316
|
-
self, other: typing.Union[typing.Sequence[float], Quaternion]
|
|
1317
|
-
) -> Quaternion:
|
|
1292
|
+
def __sub__(self, other: typing.Sequence[float] | Quaternion) -> Quaternion:
|
|
1318
1293
|
"""
|
|
1319
1294
|
|
|
1320
1295
|
:param other:
|
|
1321
|
-
:type other: typing.
|
|
1296
|
+
:type other: typing.Sequence[float] | Quaternion
|
|
1322
1297
|
:return:
|
|
1323
1298
|
:rtype: Quaternion
|
|
1324
1299
|
"""
|
|
1325
1300
|
...
|
|
1326
1301
|
|
|
1327
1302
|
def __mul__(
|
|
1328
|
-
self, other:
|
|
1303
|
+
self, other: int | float | typing.Sequence[float] | Quaternion
|
|
1329
1304
|
) -> Quaternion:
|
|
1330
1305
|
"""
|
|
1331
1306
|
|
|
1332
1307
|
:param other:
|
|
1333
|
-
:type other:
|
|
1308
|
+
:type other: int | float | typing.Sequence[float] | Quaternion
|
|
1334
1309
|
:return:
|
|
1335
1310
|
:rtype: Quaternion
|
|
1336
1311
|
"""
|
|
1337
1312
|
...
|
|
1338
1313
|
|
|
1339
1314
|
@typing.overload
|
|
1340
|
-
def __matmul__(
|
|
1341
|
-
self, other: typing.Union[typing.Sequence[float], Quaternion]
|
|
1342
|
-
) -> Quaternion:
|
|
1315
|
+
def __matmul__(self, other: typing.Sequence[float] | Quaternion) -> Quaternion:
|
|
1343
1316
|
"""
|
|
1344
1317
|
|
|
1345
1318
|
:param other:
|
|
1346
|
-
:type other: typing.
|
|
1319
|
+
:type other: typing.Sequence[float] | Quaternion
|
|
1347
1320
|
:return:
|
|
1348
1321
|
:rtype: Quaternion
|
|
1349
1322
|
"""
|
|
1350
1323
|
...
|
|
1351
1324
|
|
|
1352
1325
|
@typing.overload
|
|
1353
|
-
def __matmul__(self, other: typing.
|
|
1326
|
+
def __matmul__(self, other: typing.Sequence[float] | Vector) -> Vector:
|
|
1354
1327
|
"""
|
|
1355
1328
|
|
|
1356
1329
|
:param other:
|
|
1357
|
-
:type other: typing.
|
|
1330
|
+
:type other: typing.Sequence[float] | Vector
|
|
1358
1331
|
:return:
|
|
1359
1332
|
:rtype: Vector
|
|
1360
1333
|
"""
|
|
@@ -1362,62 +1335,56 @@ class Quaternion:
|
|
|
1362
1335
|
|
|
1363
1336
|
def __matmul__(
|
|
1364
1337
|
self,
|
|
1365
|
-
other: typing.
|
|
1366
|
-
|
|
1367
|
-
],
|
|
1368
|
-
) -> typing.Union[Vector, Quaternion]:
|
|
1338
|
+
other: typing.Sequence[float] | Vector | typing.Sequence[float] | Quaternion,
|
|
1339
|
+
) -> Vector | Quaternion:
|
|
1369
1340
|
"""
|
|
1370
1341
|
|
|
1371
1342
|
:param other:
|
|
1372
|
-
:type other: typing.
|
|
1343
|
+
:type other: typing.Sequence[float] | Vector | typing.Sequence[float] | Quaternion
|
|
1373
1344
|
:return:
|
|
1374
|
-
:rtype:
|
|
1345
|
+
:rtype: Vector | Quaternion
|
|
1375
1346
|
"""
|
|
1376
1347
|
...
|
|
1377
1348
|
|
|
1378
|
-
def __radd__(
|
|
1379
|
-
self, other: typing.Union[typing.Sequence[float], Quaternion]
|
|
1380
|
-
) -> Quaternion:
|
|
1349
|
+
def __radd__(self, other: typing.Sequence[float] | Quaternion) -> Quaternion:
|
|
1381
1350
|
"""
|
|
1382
1351
|
|
|
1383
1352
|
:param other:
|
|
1384
|
-
:type other: typing.
|
|
1353
|
+
:type other: typing.Sequence[float] | Quaternion
|
|
1385
1354
|
:return:
|
|
1386
1355
|
:rtype: Quaternion
|
|
1387
1356
|
"""
|
|
1388
1357
|
...
|
|
1389
1358
|
|
|
1390
|
-
def __rsub__(
|
|
1391
|
-
self, other: typing.Union[typing.Sequence[float], Quaternion]
|
|
1392
|
-
) -> Quaternion:
|
|
1359
|
+
def __rsub__(self, other: typing.Sequence[float] | Quaternion) -> Quaternion:
|
|
1393
1360
|
"""
|
|
1394
1361
|
|
|
1395
1362
|
:param other:
|
|
1396
|
-
:type other: typing.
|
|
1363
|
+
:type other: typing.Sequence[float] | Quaternion
|
|
1397
1364
|
:return:
|
|
1398
1365
|
:rtype: Quaternion
|
|
1399
1366
|
"""
|
|
1400
1367
|
...
|
|
1401
1368
|
|
|
1402
1369
|
def __rmul__(
|
|
1403
|
-
self, other:
|
|
1370
|
+
self, other: int | float | typing.Sequence[float] | Quaternion
|
|
1404
1371
|
) -> Quaternion:
|
|
1405
1372
|
"""
|
|
1406
1373
|
|
|
1407
1374
|
:param other:
|
|
1408
|
-
:type other:
|
|
1375
|
+
:type other: int | float | typing.Sequence[float] | Quaternion
|
|
1409
1376
|
:return:
|
|
1410
1377
|
:rtype: Quaternion
|
|
1411
1378
|
"""
|
|
1412
1379
|
...
|
|
1413
1380
|
|
|
1414
1381
|
def __imul__(
|
|
1415
|
-
self, other:
|
|
1382
|
+
self, other: int | float | typing.Sequence[float] | Quaternion
|
|
1416
1383
|
) -> Quaternion:
|
|
1417
1384
|
"""
|
|
1418
1385
|
|
|
1419
1386
|
:param other:
|
|
1420
|
-
:type other:
|
|
1387
|
+
:type other: int | float | typing.Sequence[float] | Quaternion
|
|
1421
1388
|
:return:
|
|
1422
1389
|
:rtype: Quaternion
|
|
1423
1390
|
"""
|
|
@@ -2545,14 +2512,12 @@ class Vector:
|
|
|
2545
2512
|
...
|
|
2546
2513
|
|
|
2547
2514
|
def angle(
|
|
2548
|
-
self,
|
|
2549
|
-
other: typing.Union[typing.Sequence[float], Vector],
|
|
2550
|
-
fallback: typing.Any = None,
|
|
2515
|
+
self, other: typing.Sequence[float] | Vector, fallback: typing.Any = None
|
|
2551
2516
|
) -> float:
|
|
2552
2517
|
"""Return the angle between two vectors.
|
|
2553
2518
|
|
|
2554
2519
|
:param other: another vector to compare the angle with
|
|
2555
|
-
:type other: typing.
|
|
2520
|
+
:type other: typing.Sequence[float] | Vector
|
|
2556
2521
|
:param fallback: return this when the angle can't be calculated (zero length vector),
|
|
2557
2522
|
(instead of raising a `ValueError`).
|
|
2558
2523
|
:type fallback: typing.Any
|
|
@@ -2562,12 +2527,12 @@ class Vector:
|
|
|
2562
2527
|
...
|
|
2563
2528
|
|
|
2564
2529
|
def angle_signed(
|
|
2565
|
-
self, other: typing.
|
|
2530
|
+
self, other: typing.Sequence[float] | Vector, fallback: typing.Any
|
|
2566
2531
|
) -> float:
|
|
2567
2532
|
"""Return the signed angle between two 2D vectors (clockwise is positive).
|
|
2568
2533
|
|
|
2569
2534
|
:param other: another vector to compare the angle with
|
|
2570
|
-
:type other: typing.
|
|
2535
|
+
:type other: typing.Sequence[float] | Vector
|
|
2571
2536
|
:param fallback: return this when the angle can't be calculated (zero length vector),
|
|
2572
2537
|
(instead of raising a `ValueError`).
|
|
2573
2538
|
:type fallback: typing.Any
|
|
@@ -2584,21 +2549,21 @@ class Vector:
|
|
|
2584
2549
|
"""
|
|
2585
2550
|
...
|
|
2586
2551
|
|
|
2587
|
-
def cross(self, other: typing.
|
|
2552
|
+
def cross(self, other: typing.Sequence[float] | Vector) -> Vector:
|
|
2588
2553
|
"""Return the cross product of this vector and another.
|
|
2589
2554
|
|
|
2590
2555
|
:param other: The other vector to perform the cross product with.
|
|
2591
|
-
:type other: typing.
|
|
2556
|
+
:type other: typing.Sequence[float] | Vector
|
|
2592
2557
|
:return: The cross product.
|
|
2593
2558
|
:rtype: Vector
|
|
2594
2559
|
"""
|
|
2595
2560
|
...
|
|
2596
2561
|
|
|
2597
|
-
def dot(self, other: typing.
|
|
2562
|
+
def dot(self, other: typing.Sequence[float] | Vector) -> float:
|
|
2598
2563
|
"""Return the dot product of this vector and another.
|
|
2599
2564
|
|
|
2600
2565
|
:param other: The other vector to perform the dot product with.
|
|
2601
|
-
:type other: typing.
|
|
2566
|
+
:type other: typing.Sequence[float] | Vector
|
|
2602
2567
|
:return: The dot product.
|
|
2603
2568
|
:rtype: float
|
|
2604
2569
|
"""
|
|
@@ -2612,13 +2577,11 @@ class Vector:
|
|
|
2612
2577
|
"""
|
|
2613
2578
|
...
|
|
2614
2579
|
|
|
2615
|
-
def lerp(
|
|
2616
|
-
self, other: typing.Union[typing.Sequence[float], Vector], factor: float
|
|
2617
|
-
) -> Vector:
|
|
2580
|
+
def lerp(self, other: typing.Sequence[float] | Vector, factor: float) -> Vector:
|
|
2618
2581
|
"""Returns the interpolation of two vectors.
|
|
2619
2582
|
|
|
2620
2583
|
:param other: value to interpolate with.
|
|
2621
|
-
:type other: typing.
|
|
2584
|
+
:type other: typing.Sequence[float] | Vector
|
|
2622
2585
|
:param factor: The interpolation value in [0.0, 1.0].
|
|
2623
2586
|
:type factor: float
|
|
2624
2587
|
:return: The interpolated vector.
|
|
@@ -2650,21 +2613,21 @@ class Vector:
|
|
|
2650
2613
|
"""
|
|
2651
2614
|
...
|
|
2652
2615
|
|
|
2653
|
-
def project(self, other: typing.
|
|
2616
|
+
def project(self, other: typing.Sequence[float] | Vector) -> Vector:
|
|
2654
2617
|
"""Return the projection of this vector onto the other.
|
|
2655
2618
|
|
|
2656
2619
|
:param other: second vector.
|
|
2657
|
-
:type other: typing.
|
|
2620
|
+
:type other: typing.Sequence[float] | Vector
|
|
2658
2621
|
:return: the parallel projection vector
|
|
2659
2622
|
:rtype: Vector
|
|
2660
2623
|
"""
|
|
2661
2624
|
...
|
|
2662
2625
|
|
|
2663
|
-
def reflect(self, mirror: typing.
|
|
2626
|
+
def reflect(self, mirror: typing.Sequence[float] | Vector) -> Vector:
|
|
2664
2627
|
"""Return the reflection vector from the mirror argument.
|
|
2665
2628
|
|
|
2666
2629
|
:param mirror: This vector could be a normal from the reflecting surface.
|
|
2667
|
-
:type mirror: typing.
|
|
2630
|
+
:type mirror: typing.Sequence[float] | Vector
|
|
2668
2631
|
:return: The reflected vector matching the size of this vector.
|
|
2669
2632
|
:rtype: Vector
|
|
2670
2633
|
"""
|
|
@@ -2700,30 +2663,26 @@ class Vector:
|
|
|
2700
2663
|
|
|
2701
2664
|
def rotate(
|
|
2702
2665
|
self,
|
|
2703
|
-
other: typing.
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
Matrix,
|
|
2710
|
-
],
|
|
2666
|
+
other: typing.Sequence[float]
|
|
2667
|
+
| Euler
|
|
2668
|
+
| typing.Sequence[float]
|
|
2669
|
+
| Quaternion
|
|
2670
|
+
| typing.Sequence[float]
|
|
2671
|
+
| Matrix,
|
|
2711
2672
|
):
|
|
2712
2673
|
"""Rotate the vector by a rotation value.
|
|
2713
2674
|
|
|
2714
2675
|
:param other: rotation component of mathutils value
|
|
2715
|
-
:type other: typing.
|
|
2676
|
+
:type other: typing.Sequence[float] | Euler | typing.Sequence[float] | Quaternion | typing.Sequence[float] | Matrix
|
|
2716
2677
|
"""
|
|
2717
2678
|
...
|
|
2718
2679
|
|
|
2719
|
-
def rotation_difference(
|
|
2720
|
-
self, other: typing.Union[typing.Sequence[float], Vector]
|
|
2721
|
-
) -> Quaternion:
|
|
2680
|
+
def rotation_difference(self, other: typing.Sequence[float] | Vector) -> Quaternion:
|
|
2722
2681
|
"""Returns a quaternion representing the rotational difference between this
|
|
2723
2682
|
vector and another.
|
|
2724
2683
|
|
|
2725
2684
|
:param other: second vector.
|
|
2726
|
-
:type other: typing.
|
|
2685
|
+
:type other: typing.Sequence[float] | Vector
|
|
2727
2686
|
:return: the rotational difference between the two vectors.
|
|
2728
2687
|
:rtype: Quaternion
|
|
2729
2688
|
"""
|
|
@@ -2731,14 +2690,14 @@ class Vector:
|
|
|
2731
2690
|
|
|
2732
2691
|
def slerp(
|
|
2733
2692
|
self,
|
|
2734
|
-
other: typing.
|
|
2693
|
+
other: typing.Sequence[float] | Vector,
|
|
2735
2694
|
factor: float,
|
|
2736
2695
|
fallback: typing.Any = None,
|
|
2737
2696
|
) -> Vector:
|
|
2738
2697
|
"""Returns the interpolation of two non-zero vectors (spherical coordinates).
|
|
2739
2698
|
|
|
2740
2699
|
:param other: value to interpolate with.
|
|
2741
|
-
:type other: typing.
|
|
2700
|
+
:type other: typing.Sequence[float] | Vector
|
|
2742
2701
|
:param factor: The interpolation value typically in [0.0, 1.0].
|
|
2743
2702
|
:type factor: float
|
|
2744
2703
|
:param fallback: return this when the vector can't be calculated (zero length vector or direct opposites),
|
|
@@ -2785,13 +2744,13 @@ class Vector:
|
|
|
2785
2744
|
"""
|
|
2786
2745
|
...
|
|
2787
2746
|
|
|
2788
|
-
def to_tuple(self, precision: int = -1) ->
|
|
2747
|
+
def to_tuple(self, precision: int = -1) -> tuple:
|
|
2789
2748
|
"""Return this vector as a tuple with.
|
|
2790
2749
|
|
|
2791
2750
|
:param precision: The number to round the value to in [-1, 21].
|
|
2792
2751
|
:type precision: int
|
|
2793
2752
|
:return: the values of the vector rounded by precision
|
|
2794
|
-
:rtype:
|
|
2753
|
+
:rtype: tuple
|
|
2795
2754
|
"""
|
|
2796
2755
|
...
|
|
2797
2756
|
|
|
@@ -2844,158 +2803,155 @@ class Vector:
|
|
|
2844
2803
|
"""
|
|
2845
2804
|
...
|
|
2846
2805
|
|
|
2847
|
-
def __add__(self, other: typing.
|
|
2806
|
+
def __add__(self, other: typing.Sequence[float] | Vector) -> Vector:
|
|
2848
2807
|
"""
|
|
2849
2808
|
|
|
2850
2809
|
:param other:
|
|
2851
|
-
:type other: typing.
|
|
2810
|
+
:type other: typing.Sequence[float] | Vector
|
|
2852
2811
|
:return:
|
|
2853
2812
|
:rtype: Vector
|
|
2854
2813
|
"""
|
|
2855
2814
|
...
|
|
2856
2815
|
|
|
2857
|
-
def __sub__(self, other: typing.
|
|
2816
|
+
def __sub__(self, other: typing.Sequence[float] | Vector) -> Vector:
|
|
2858
2817
|
"""
|
|
2859
2818
|
|
|
2860
2819
|
:param other:
|
|
2861
|
-
:type other: typing.
|
|
2820
|
+
:type other: typing.Sequence[float] | Vector
|
|
2862
2821
|
:return:
|
|
2863
2822
|
:rtype: Vector
|
|
2864
2823
|
"""
|
|
2865
2824
|
...
|
|
2866
2825
|
|
|
2867
|
-
def __mul__(self, other:
|
|
2826
|
+
def __mul__(self, other: int | float) -> Vector:
|
|
2868
2827
|
"""
|
|
2869
2828
|
|
|
2870
2829
|
:param other:
|
|
2871
|
-
:type other:
|
|
2830
|
+
:type other: int | float
|
|
2872
2831
|
:return:
|
|
2873
2832
|
:rtype: Vector
|
|
2874
2833
|
"""
|
|
2875
2834
|
...
|
|
2876
2835
|
|
|
2877
|
-
def __truediv__(self, other:
|
|
2836
|
+
def __truediv__(self, other: int | float) -> Vector:
|
|
2878
2837
|
"""
|
|
2879
2838
|
|
|
2880
2839
|
:param other:
|
|
2881
|
-
:type other:
|
|
2840
|
+
:type other: int | float
|
|
2882
2841
|
:return:
|
|
2883
2842
|
:rtype: Vector
|
|
2884
2843
|
"""
|
|
2885
2844
|
...
|
|
2886
2845
|
|
|
2887
2846
|
@typing.overload
|
|
2888
|
-
def __matmul__(self, other: typing.
|
|
2847
|
+
def __matmul__(self, other: typing.Sequence[float] | Vector) -> float:
|
|
2889
2848
|
"""
|
|
2890
2849
|
|
|
2891
2850
|
:param other:
|
|
2892
|
-
:type other: typing.
|
|
2851
|
+
:type other: typing.Sequence[float] | Vector
|
|
2893
2852
|
:return:
|
|
2894
2853
|
:rtype: float
|
|
2895
2854
|
"""
|
|
2896
2855
|
...
|
|
2897
2856
|
|
|
2898
2857
|
@typing.overload
|
|
2899
|
-
def __matmul__(self, other: typing.
|
|
2858
|
+
def __matmul__(self, other: typing.Sequence[float] | Matrix) -> Vector:
|
|
2900
2859
|
"""
|
|
2901
2860
|
|
|
2902
2861
|
:param other:
|
|
2903
|
-
:type other: typing.
|
|
2862
|
+
:type other: typing.Sequence[float] | Matrix
|
|
2904
2863
|
:return:
|
|
2905
2864
|
:rtype: Vector
|
|
2906
2865
|
"""
|
|
2907
2866
|
...
|
|
2908
2867
|
|
|
2909
2868
|
def __matmul__(
|
|
2910
|
-
self,
|
|
2911
|
-
|
|
2912
|
-
typing.Sequence[float], Vector, typing.Sequence[float], Matrix
|
|
2913
|
-
],
|
|
2914
|
-
) -> typing.Union[Vector, float]:
|
|
2869
|
+
self, other: typing.Sequence[float] | Vector | typing.Sequence[float] | Matrix
|
|
2870
|
+
) -> Vector | float:
|
|
2915
2871
|
"""
|
|
2916
2872
|
|
|
2917
2873
|
:param other:
|
|
2918
|
-
:type other: typing.
|
|
2874
|
+
:type other: typing.Sequence[float] | Vector | typing.Sequence[float] | Matrix
|
|
2919
2875
|
:return:
|
|
2920
|
-
:rtype:
|
|
2876
|
+
:rtype: Vector | float
|
|
2921
2877
|
"""
|
|
2922
2878
|
...
|
|
2923
2879
|
|
|
2924
|
-
def __radd__(self, other: typing.
|
|
2880
|
+
def __radd__(self, other: typing.Sequence[float] | Vector) -> Vector:
|
|
2925
2881
|
"""
|
|
2926
2882
|
|
|
2927
2883
|
:param other:
|
|
2928
|
-
:type other: typing.
|
|
2884
|
+
:type other: typing.Sequence[float] | Vector
|
|
2929
2885
|
:return:
|
|
2930
2886
|
:rtype: Vector
|
|
2931
2887
|
"""
|
|
2932
2888
|
...
|
|
2933
2889
|
|
|
2934
|
-
def __rsub__(self, other: typing.
|
|
2890
|
+
def __rsub__(self, other: typing.Sequence[float] | Vector) -> Vector:
|
|
2935
2891
|
"""
|
|
2936
2892
|
|
|
2937
2893
|
:param other:
|
|
2938
|
-
:type other: typing.
|
|
2894
|
+
:type other: typing.Sequence[float] | Vector
|
|
2939
2895
|
:return:
|
|
2940
2896
|
:rtype: Vector
|
|
2941
2897
|
"""
|
|
2942
2898
|
...
|
|
2943
2899
|
|
|
2944
|
-
def __rmul__(self, other:
|
|
2900
|
+
def __rmul__(self, other: int | float) -> Vector:
|
|
2945
2901
|
"""
|
|
2946
2902
|
|
|
2947
2903
|
:param other:
|
|
2948
|
-
:type other:
|
|
2904
|
+
:type other: int | float
|
|
2949
2905
|
:return:
|
|
2950
2906
|
:rtype: Vector
|
|
2951
2907
|
"""
|
|
2952
2908
|
...
|
|
2953
2909
|
|
|
2954
|
-
def __rtruediv__(self, other:
|
|
2910
|
+
def __rtruediv__(self, other: int | float) -> Vector:
|
|
2955
2911
|
"""
|
|
2956
2912
|
|
|
2957
2913
|
:param other:
|
|
2958
|
-
:type other:
|
|
2914
|
+
:type other: int | float
|
|
2959
2915
|
:return:
|
|
2960
2916
|
:rtype: Vector
|
|
2961
2917
|
"""
|
|
2962
2918
|
...
|
|
2963
2919
|
|
|
2964
|
-
def __iadd__(self, other: typing.
|
|
2920
|
+
def __iadd__(self, other: typing.Sequence[float] | Vector) -> Vector:
|
|
2965
2921
|
"""
|
|
2966
2922
|
|
|
2967
2923
|
:param other:
|
|
2968
|
-
:type other: typing.
|
|
2924
|
+
:type other: typing.Sequence[float] | Vector
|
|
2969
2925
|
:return:
|
|
2970
2926
|
:rtype: Vector
|
|
2971
2927
|
"""
|
|
2972
2928
|
...
|
|
2973
2929
|
|
|
2974
|
-
def __isub__(self, other: typing.
|
|
2930
|
+
def __isub__(self, other: typing.Sequence[float] | Vector) -> Vector:
|
|
2975
2931
|
"""
|
|
2976
2932
|
|
|
2977
2933
|
:param other:
|
|
2978
|
-
:type other: typing.
|
|
2934
|
+
:type other: typing.Sequence[float] | Vector
|
|
2979
2935
|
:return:
|
|
2980
2936
|
:rtype: Vector
|
|
2981
2937
|
"""
|
|
2982
2938
|
...
|
|
2983
2939
|
|
|
2984
|
-
def __imul__(self, other:
|
|
2940
|
+
def __imul__(self, other: int | float) -> Vector:
|
|
2985
2941
|
"""
|
|
2986
2942
|
|
|
2987
2943
|
:param other:
|
|
2988
|
-
:type other:
|
|
2944
|
+
:type other: int | float
|
|
2989
2945
|
:return:
|
|
2990
2946
|
:rtype: Vector
|
|
2991
2947
|
"""
|
|
2992
2948
|
...
|
|
2993
2949
|
|
|
2994
|
-
def __itruediv__(self, other:
|
|
2950
|
+
def __itruediv__(self, other: int | float) -> Vector:
|
|
2995
2951
|
"""
|
|
2996
2952
|
|
|
2997
2953
|
:param other:
|
|
2998
|
-
:type other:
|
|
2954
|
+
:type other: int | float
|
|
2999
2955
|
:return:
|
|
3000
2956
|
:rtype: Vector
|
|
3001
2957
|
"""
|