fake-bpy-module 20240915__py3-none-any.whl → 20240917__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/__init__.pyi +2 -2
- _bpy_internal/addons/__init__.pyi +2 -2
- _bpy_internal/addons/cli/__init__.pyi +2 -2
- _bpy_internal/extensions/__init__.pyi +2 -2
- _bpy_internal/extensions/junction_module/__init__.pyi +2 -8
- _bpy_internal/extensions/stale_file_manager/__init__.pyi +2 -6
- _bpy_internal/extensions/wheel_manager/__init__.pyi +2 -6
- _bpy_internal/freedesktop/__init__.pyi +2 -2
- _bpy_internal/grease_pencil/__init__.pyi +2 -2
- _bpy_internal/grease_pencil/stroke/__init__.pyi +2 -16
- _bpy_internal/system_info/__init__.pyi +2 -2
- _bpy_internal/system_info/text_generate_runtime/__init__.pyi +2 -2
- _bpy_internal/system_info/url_prefill_runtime/__init__.pyi +2 -2
- _bpy_internal/system_info/url_prefill_startup/__init__.pyi +2 -2
- addon_utils/__init__.pyi +2 -12
- animsys_refactor/__init__.pyi +2 -3
- aud/__init__.pyi +2 -71
- bgl/__init__.pyi +2 -526
- bl_app_override/__init__.pyi +2 -2
- bl_app_override/helpers/__init__.pyi +2 -2
- bl_app_template_utils/__init__.pyi +2 -4
- bl_console_utils/__init__.pyi +2 -2
- bl_console_utils/autocomplete/__init__.pyi +2 -2
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +2 -12
- bl_console_utils/autocomplete/complete_import/__init__.pyi +2 -8
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +2 -12
- bl_console_utils/autocomplete/intellisense/__init__.pyi +2 -6
- bl_i18n_utils/__init__.pyi +2 -2
- bl_i18n_utils/bl_extract_messages/__init__.pyi +2 -6
- bl_i18n_utils/merge_po/__init__.pyi +2 -2
- bl_i18n_utils/settings/__init__.pyi +2 -6
- bl_i18n_utils/utils/__init__.pyi +2 -45
- bl_i18n_utils/utils_cli/__init__.pyi +2 -2
- bl_i18n_utils/utils_languages_menu/__init__.pyi +2 -2
- bl_i18n_utils/utils_rtl/__init__.pyi +2 -6
- bl_keymap_utils/__init__.pyi +2 -2
- bl_keymap_utils/io/__init__.pyi +2 -4
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +2 -4
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +2 -2
- bl_keymap_utils/platform_helpers/__init__.pyi +2 -4
- bl_keymap_utils/versioning/__init__.pyi +2 -2
- bl_math/__init__.pyi +2 -8
- bl_operators/__init__.pyi +2 -2
- bl_operators/add_mesh_torus/__init__.pyi +2 -8
- bl_operators/anim/__init__.pyi +2 -48
- bl_operators/assets/__init__.pyi +2 -17
- bl_operators/bmesh/__init__.pyi +2 -2
- bl_operators/bmesh/find_adjacent/__init__.pyi +2 -6
- bl_operators/bone_selection_sets/__init__.pyi +2 -46
- bl_operators/clip/__init__.pyi +2 -43
- bl_operators/connect_to_output/__init__.pyi +2 -18
- bl_operators/console/__init__.pyi +2 -22
- bl_operators/constraint/__init__.pyi +2 -18
- bl_operators/file/__init__.pyi +2 -14
- bl_operators/freestyle/__init__.pyi +2 -19
- bl_operators/geometry_nodes/__init__.pyi +2 -21
- bl_operators/image/__init__.pyi +2 -19
- bl_operators/image_as_planes/__init__.pyi +2 -43
- bl_operators/mesh/__init__.pyi +2 -15
- bl_operators/node/__init__.pyi +2 -41
- bl_operators/node_editor/__init__.pyi +2 -2
- bl_operators/node_editor/node_functions/__init__.pyi +2 -3
- bl_operators/object/__init__.pyi +2 -63
- bl_operators/object_align/__init__.pyi +2 -6
- bl_operators/object_quick_effects/__init__.pyi +2 -18
- bl_operators/object_randomize_transform/__init__.pyi +2 -6
- bl_operators/presets/__init__.pyi +2 -70
- bl_operators/rigidbody/__init__.pyi +2 -15
- bl_operators/screen_play_rendered_anim/__init__.pyi +2 -5
- bl_operators/sequencer/__init__.pyi +2 -36
- bl_operators/spreadsheet/__init__.pyi +2 -8
- bl_operators/userpref/__init__.pyi +2 -93
- bl_operators/uvcalc_follow_active/__init__.pyi +2 -7
- bl_operators/uvcalc_lightmap/__init__.pyi +2 -11
- bl_operators/uvcalc_transform/__init__.pyi +2 -19
- bl_operators/vertexpaint_dirt/__init__.pyi +2 -6
- bl_operators/view3d/__init__.pyi +2 -37
- bl_operators/wm/__init__.pyi +2 -168
- bl_operators/world/__init__.pyi +2 -6
- bl_previews_utils/__init__.pyi +2 -2
- bl_previews_utils/bl_previews_render/__init__.pyi +2 -2
- bl_rna_utils/__init__.pyi +2 -2
- bl_rna_utils/data_path/__init__.pyi +2 -6
- bl_text_utils/__init__.pyi +2 -2
- bl_text_utils/external_editor/__init__.pyi +2 -2
- bl_ui/__init__.pyi +2 -11
- bl_ui/anim/__init__.pyi +2 -5
- bl_ui/asset_shelf/__init__.pyi +2 -6
- bl_ui/generic_ui_list/__init__.pyi +2 -16
- bl_ui/node_add_menu/__init__.pyi +2 -11
- bl_ui/node_add_menu_compositor/__init__.pyi +2 -53
- bl_ui/node_add_menu_geometry/__init__.pyi +2 -152
- bl_ui/node_add_menu_shader/__init__.pyi +2 -31
- bl_ui/node_add_menu_texture/__init__.pyi +2 -29
- bl_ui/properties_animviz/__init__.pyi +2 -4
- bl_ui/properties_collection/__init__.pyi +2 -20
- bl_ui/properties_constraint/__init__.pyi +2 -288
- bl_ui/properties_data_armature/__init__.pyi +2 -60
- bl_ui/properties_data_bone/__init__.pyi +2 -42
- bl_ui/properties_data_camera/__init__.pyi +2 -51
- bl_ui/properties_data_curve/__init__.pyi +2 -58
- bl_ui/properties_data_curves/__init__.pyi +2 -24
- bl_ui/properties_data_empty/__init__.pyi +2 -10
- bl_ui/properties_data_gpencil/__init__.pyi +2 -57
- bl_ui/properties_data_grease_pencil/__init__.pyi +2 -49
- bl_ui/properties_data_lattice/__init__.pyi +2 -14
- bl_ui/properties_data_light/__init__.pyi +2 -50
- bl_ui/properties_data_lightprobe/__init__.pyi +2 -48
- bl_ui/properties_data_mesh/__init__.pyi +2 -69
- bl_ui/properties_data_metaball/__init__.pyi +2 -20
- bl_ui/properties_data_modifier/__init__.pyi +2 -36
- bl_ui/properties_data_pointcloud/__init__.pyi +2 -19
- bl_ui/properties_data_shaderfx/__init__.pyi +2 -5
- bl_ui/properties_data_speaker/__init__.pyi +2 -19
- bl_ui/properties_data_volume/__init__.pyi +2 -29
- bl_ui/properties_freestyle/__init__.pyi +2 -98
- bl_ui/properties_grease_pencil_common/__init__.pyi +2 -74
- bl_ui/properties_mask_common/__init__.pyi +2 -37
- bl_ui/properties_material/__init__.pyi +2 -59
- bl_ui/properties_material_gpencil/__init__.pyi +2 -36
- bl_ui/properties_object/__init__.pyi +2 -52
- bl_ui/properties_output/__init__.pyi +2 -65
- bl_ui/properties_paint_common/__init__.pyi +2 -41
- bl_ui/properties_particle/__init__.pyi +2 -205
- bl_ui/properties_physics_cloth/__init__.pyi +2 -49
- bl_ui/properties_physics_common/__init__.pyi +2 -6
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +2 -103
- bl_ui/properties_physics_field/__init__.pyi +2 -44
- bl_ui/properties_physics_fluid/__init__.pyi +2 -134
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +2 -7
- bl_ui/properties_physics_rigidbody/__init__.pyi +2 -35
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +2 -57
- bl_ui/properties_physics_softbody/__init__.pyi +2 -52
- bl_ui/properties_render/__init__.pyi +2 -220
- bl_ui/properties_scene/__init__.pyi +2 -55
- bl_ui/properties_texture/__init__.pyi +2 -93
- bl_ui/properties_view_layer/__init__.pyi +2 -47
- bl_ui/properties_workspace/__init__.pyi +2 -15
- bl_ui/properties_world/__init__.pyi +2 -42
- bl_ui/space_clip/__init__.pyi +2 -224
- bl_ui/space_console/__init__.pyi +2 -20
- bl_ui/space_dopesheet/__init__.pyi +2 -96
- bl_ui/space_filebrowser/__init__.pyi +2 -99
- bl_ui/space_graph/__init__.pyi +2 -62
- bl_ui/space_image/__init__.pyi +2 -211
- bl_ui/space_info/__init__.pyi +2 -20
- bl_ui/space_nla/__init__.pyi +2 -54
- bl_ui/space_node/__init__.pyi +2 -100
- bl_ui/space_outliner/__init__.pyi +2 -48
- bl_ui/space_properties/__init__.pyi +2 -14
- bl_ui/space_sequencer/__init__.pyi +2 -280
- bl_ui/space_spreadsheet/__init__.pyi +2 -11
- bl_ui/space_statusbar/__init__.pyi +2 -5
- bl_ui/space_text/__init__.pyi +2 -51
- bl_ui/space_time/__init__.pyi +2 -27
- bl_ui/space_toolsystem_common/__init__.pyi +3 -13
- bl_ui/space_toolsystem_toolbar/__init__.pyi +7 -126
- bl_ui/space_topbar/__init__.pyi +37 -86
- bl_ui/space_userpref/__init__.pyi +2 -313
- bl_ui/space_view3d/__init__.pyi +30 -881
- bl_ui/space_view3d_toolbar/__init__.pyi +2 -344
- bl_ui/utils/__init__.pyi +2 -5
- bl_ui_utils/__init__.pyi +2 -2
- bl_ui_utils/layout/__init__.pyi +2 -4
- blend_render_info/__init__.pyi +2 -4
- blf/__init__.pyi +2 -32
- bmesh/__init__.pyi +2 -8
- bmesh/geometry/__init__.pyi +2 -4
- bmesh/ops/__init__.pyi +2 -162
- bmesh/types/__init__.pyi +19 -133
- bmesh/utils/__init__.pyi +2 -28
- bpy/__init__.pyi +2 -2
- bpy/app/__init__.pyi +2 -6
- bpy/app/handlers/__init__.pyi +2 -2
- bpy/app/icons/__init__.pyi +2 -8
- bpy/app/timers/__init__.pyi +2 -8
- bpy/app/translations/__init__.pyi +2 -20
- bpy/msgbus/__init__.pyi +2 -8
- bpy/ops/__init__.pyi +2 -2
- bpy/ops/action/__init__.pyi +15 -110
- bpy/ops/anim/__init__.pyi +2 -118
- bpy/ops/armature/__init__.pyi +2 -98
- bpy/ops/asset/__init__.pyi +2 -34
- bpy/ops/boid/__init__.pyi +5 -30
- bpy/ops/brush/__init__.pyi +5 -31
- bpy/ops/buttons/__init__.pyi +2 -14
- bpy/ops/cachefile/__init__.pyi +2 -12
- bpy/ops/camera/__init__.pyi +2 -6
- bpy/ops/clip/__init__.pyi +5 -188
- bpy/ops/cloth/__init__.pyi +2 -4
- bpy/ops/collection/__init__.pyi +2 -20
- bpy/ops/console/__init__.pyi +2 -44
- bpy/ops/constraint/__init__.pyi +2 -38
- bpy/ops/curve/__init__.pyi +7 -143
- bpy/ops/curves/__init__.pyi +11 -64
- bpy/ops/cycles/__init__.pyi +2 -8
- bpy/ops/dpaint/__init__.pyi +5 -14
- bpy/ops/ed/__init__.pyi +2 -26
- bpy/ops/export_anim/__init__.pyi +2 -4
- bpy/ops/export_scene/__init__.pyi +2 -6
- bpy/ops/extensions/__init__.pyi +2 -70
- bpy/ops/file/__init__.pyi +2 -82
- bpy/ops/fluid/__init__.pyi +2 -30
- bpy/ops/font/__init__.pyi +2 -48
- bpy/ops/geometry/__init__.pyi +21 -75
- bpy/ops/gizmogroup/__init__.pyi +2 -6
- bpy/ops/gpencil/__init__.pyi +2 -286
- bpy/ops/graph/__init__.pyi +19 -213
- bpy/ops/grease_pencil/__init__.pyi +9 -196
- bpy/ops/image/__init__.pyi +11 -111
- bpy/ops/import_anim/__init__.pyi +2 -4
- bpy/ops/import_curve/__init__.pyi +2 -4
- bpy/ops/import_scene/__init__.pyi +2 -6
- bpy/ops/info/__init__.pyi +2 -16
- bpy/ops/lattice/__init__.pyi +5 -20
- bpy/ops/marker/__init__.pyi +2 -24
- bpy/ops/mask/__init__.pyi +2 -80
- bpy/ops/material/__init__.pyi +2 -8
- bpy/ops/mball/__init__.pyi +2 -18
- bpy/ops/mesh/__init__.pyi +45 -467
- bpy/ops/nla/__init__.pyi +5 -92
- bpy/ops/node/__init__.pyi +5 -215
- bpy/ops/object/__init__.pyi +73 -870
- bpy/ops/outliner/__init__.pyi +7 -200
- bpy/ops/paint/__init__.pyi +9 -116
- bpy/ops/paintcurve/__init__.pyi +2 -18
- bpy/ops/palette/__init__.pyi +2 -16
- bpy/ops/particle/__init__.pyi +2 -74
- bpy/ops/pose/__init__.pyi +15 -180
- bpy/ops/poselib/__init__.pyi +2 -20
- bpy/ops/preferences/__init__.pyi +2 -72
- bpy/ops/ptcache/__init__.pyi +2 -16
- bpy/ops/render/__init__.pyi +2 -28
- bpy/ops/rigidbody/__init__.pyi +11 -56
- bpy/ops/scene/__init__.pyi +11 -131
- bpy/ops/screen/__init__.pyi +9 -142
- bpy/ops/script/__init__.pyi +2 -8
- bpy/ops/sculpt/__init__.pyi +2 -74
- bpy/ops/sculpt_curves/__init__.pyi +2 -10
- bpy/ops/sequencer/__init__.pyi +5 -194
- bpy/ops/sound/__init__.pyi +5 -21
- bpy/ops/spreadsheet/__init__.pyi +2 -10
- bpy/ops/surface/__init__.pyi +2 -14
- bpy/ops/text/__init__.pyi +2 -88
- bpy/ops/text_editor/__init__.pyi +2 -4
- bpy/ops/texture/__init__.pyi +2 -10
- bpy/ops/transform/__init__.pyi +75 -400
- bpy/ops/ui/__init__.pyi +2 -68
- bpy/ops/uilist/__init__.pyi +2 -8
- bpy/ops/uv/__init__.pyi +5 -102
- bpy/ops/view2d/__init__.pyi +2 -30
- bpy/ops/view3d/__init__.pyi +2 -136
- bpy/ops/wm/__init__.pyi +17 -259
- bpy/ops/workspace/__init__.pyi +2 -16
- bpy/ops/world/__init__.pyi +2 -6
- bpy/path/__init__.pyi +2 -28
- bpy/props/__init__.pyi +2 -24
- bpy/types/__init__.pyi +1230 -31631
- bpy/typing/__init__.pyi +2490 -0
- bpy/utils/__init__.pyi +4 -74
- bpy/utils/previews/__init__.pyi +2 -10
- bpy/utils/units/__init__.pyi +2 -6
- bpy_extras/__init__.pyi +2 -2
- bpy_extras/anim_utils/__init__.pyi +2 -17
- bpy_extras/asset_utils/__init__.pyi +2 -5
- bpy_extras/bmesh_utils/__init__.pyi +2 -4
- bpy_extras/id_map_utils/__init__.pyi +2 -8
- bpy_extras/image_utils/__init__.pyi +2 -4
- bpy_extras/io_utils/__init__.pyi +2 -23
- bpy_extras/keyconfig_utils/__init__.pyi +2 -6
- bpy_extras/mesh_utils/__init__.pyi +2 -16
- bpy_extras/node_shader_utils/__init__.pyi +2 -23
- bpy_extras/node_utils/__init__.pyi +2 -6
- bpy_extras/object_utils/__init__.pyi +2 -15
- bpy_extras/view3d_utils/__init__.pyi +2 -10
- bpy_extras/wm_utils/__init__.pyi +2 -2
- bpy_extras/wm_utils/progress_report/__init__.pyi +2 -10
- bpy_restrict_state/__init__.pyi +2 -2
- bpy_types/__init__.pyi +2 -5
- console_python/__init__.pyi +2 -4
- console_shell/__init__.pyi +2 -2
- {fake_bpy_module-20240915.dist-info → fake_bpy_module-20240917.dist-info}/METADATA +1 -1
- fake_bpy_module-20240917.dist-info/RECORD +365 -0
- {fake_bpy_module-20240915.dist-info → fake_bpy_module-20240917.dist-info}/WHEEL +1 -1
- freestyle/__init__.pyi +2 -2
- freestyle/chainingiterators/__init__.pyi +2 -25
- freestyle/functions/__init__.pyi +2 -109
- freestyle/predicates/__init__.pyi +2 -30
- freestyle/shaders/__init__.pyi +2 -77
- freestyle/types/__init__.pyi +2 -192
- freestyle/utils/ContextFunctions/__init__.pyi +2 -20
- freestyle/utils/__init__.pyi +4 -50
- gpu/__init__.pyi +2 -2
- gpu/capabilities/__init__.pyi +2 -40
- gpu/matrix/__init__.pyi +2 -36
- gpu/platform/__init__.pyi +2 -12
- gpu/select/__init__.pyi +2 -4
- gpu/shader/__init__.pyi +2 -8
- gpu/state/__init__.pyi +5 -45
- gpu/texture/__init__.pyi +2 -4
- gpu/types/__init__.pyi +2 -54
- gpu_extras/__init__.pyi +2 -2
- gpu_extras/batch/__init__.pyi +2 -4
- gpu_extras/presets/__init__.pyi +2 -6
- graphviz_export/__init__.pyi +2 -2
- idprop/__init__.pyi +2 -2
- idprop/types/__init__.pyi +2 -11
- imbuf/__init__.pyi +2 -8
- imbuf/types/__init__.pyi +2 -6
- keyingsets_builtins/__init__.pyi +2 -70
- keyingsets_utils/__init__.pyi +2 -2
- mathutils/__init__.pyi +38 -228
- mathutils/bvhtree/__init__.pyi +2 -10
- mathutils/geometry/__init__.pyi +2 -54
- mathutils/interpolate/__init__.pyi +2 -4
- mathutils/kdtree/__init__.pyi +2 -8
- mathutils/noise/__init__.pyi +2 -36
- nodeitems_builtins/__init__.pyi +2 -4
- nodeitems_utils/__init__.pyi +2 -4
- rna_info/__init__.pyi +2 -7
- rna_keymap_ui/__init__.pyi +2 -2
- rna_prop_ui/__init__.pyi +2 -6
- rna_xml/__init__.pyi +2 -2
- fake_bpy_module-20240915.dist-info/RECORD +0 -364
- {fake_bpy_module-20240915.dist-info → fake_bpy_module-20240917.dist-info}/top_level.txt +0 -0
mathutils/__init__.pyi
CHANGED
|
@@ -35,8 +35,8 @@ from . import interpolate as interpolate
|
|
|
35
35
|
from . import kdtree as kdtree
|
|
36
36
|
from . import noise as noise
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
_GenericType1 = typing.TypeVar("_GenericType1")
|
|
39
|
+
_GenericType2 = typing.TypeVar("_GenericType2")
|
|
40
40
|
|
|
41
41
|
class Color:
|
|
42
42
|
"""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."""
|
|
@@ -110,7 +110,6 @@ class Color:
|
|
|
110
110
|
:return: A copy of the color.
|
|
111
111
|
:rtype: typing_extensions.Self
|
|
112
112
|
"""
|
|
113
|
-
...
|
|
114
113
|
|
|
115
114
|
def freeze(self) -> typing_extensions.Self:
|
|
116
115
|
"""Make this object immutable.After this the object can be hashed, used in dictionaries & sets.
|
|
@@ -118,7 +117,6 @@ class Color:
|
|
|
118
117
|
:return: An instance of this object.
|
|
119
118
|
:rtype: typing_extensions.Self
|
|
120
119
|
"""
|
|
121
|
-
...
|
|
122
120
|
|
|
123
121
|
def from_aces_to_scene_linear(self) -> typing_extensions.Self:
|
|
124
122
|
"""Convert from ACES2065-1 linear to scene linear color space.
|
|
@@ -126,7 +124,6 @@ class Color:
|
|
|
126
124
|
:return: A color in scene linear color space.
|
|
127
125
|
:rtype: typing_extensions.Self
|
|
128
126
|
"""
|
|
129
|
-
...
|
|
130
127
|
|
|
131
128
|
def from_rec709_linear_to_scene_linear(self) -> typing_extensions.Self:
|
|
132
129
|
"""Convert from Rec.709 linear color space to scene linear color space.
|
|
@@ -134,7 +131,6 @@ class Color:
|
|
|
134
131
|
:return: A color in scene linear color space.
|
|
135
132
|
:rtype: typing_extensions.Self
|
|
136
133
|
"""
|
|
137
|
-
...
|
|
138
134
|
|
|
139
135
|
def from_scene_linear_to_aces(self) -> typing_extensions.Self:
|
|
140
136
|
"""Convert from scene linear to ACES2065-1 linear color space.
|
|
@@ -142,7 +138,6 @@ class Color:
|
|
|
142
138
|
:return: A color in ACES2065-1 linear color space.
|
|
143
139
|
:rtype: typing_extensions.Self
|
|
144
140
|
"""
|
|
145
|
-
...
|
|
146
141
|
|
|
147
142
|
def from_scene_linear_to_rec709_linear(self) -> typing_extensions.Self:
|
|
148
143
|
"""Convert from scene linear to Rec.709 linear color space.
|
|
@@ -150,7 +145,6 @@ class Color:
|
|
|
150
145
|
:return: A color in Rec.709 linear color space.
|
|
151
146
|
:rtype: typing_extensions.Self
|
|
152
147
|
"""
|
|
153
|
-
...
|
|
154
148
|
|
|
155
149
|
def from_scene_linear_to_srgb(self) -> typing_extensions.Self:
|
|
156
150
|
"""Convert from scene linear to sRGB color space.
|
|
@@ -158,7 +152,6 @@ class Color:
|
|
|
158
152
|
:return: A color in sRGB color space.
|
|
159
153
|
:rtype: typing_extensions.Self
|
|
160
154
|
"""
|
|
161
|
-
...
|
|
162
155
|
|
|
163
156
|
def from_scene_linear_to_xyz_d65(self) -> typing_extensions.Self:
|
|
164
157
|
"""Convert from scene linear to CIE XYZ (Illuminant D65) color space.
|
|
@@ -166,7 +159,6 @@ class Color:
|
|
|
166
159
|
:return: A color in XYZ color space.
|
|
167
160
|
:rtype: typing_extensions.Self
|
|
168
161
|
"""
|
|
169
|
-
...
|
|
170
162
|
|
|
171
163
|
def from_srgb_to_scene_linear(self) -> typing_extensions.Self:
|
|
172
164
|
"""Convert from sRGB to scene linear color space.
|
|
@@ -174,7 +166,6 @@ class Color:
|
|
|
174
166
|
:return: A color in scene linear color space.
|
|
175
167
|
:rtype: typing_extensions.Self
|
|
176
168
|
"""
|
|
177
|
-
...
|
|
178
169
|
|
|
179
170
|
def from_xyz_d65_to_scene_linear(self) -> typing_extensions.Self:
|
|
180
171
|
"""Convert from CIE XYZ (Illuminant D65) to scene linear color space.
|
|
@@ -182,14 +173,12 @@ class Color:
|
|
|
182
173
|
:return: A color in scene linear color space.
|
|
183
174
|
:rtype: typing_extensions.Self
|
|
184
175
|
"""
|
|
185
|
-
...
|
|
186
176
|
|
|
187
177
|
def __init__(self, rgb=(0.0, 0.0, 0.0)):
|
|
188
178
|
"""
|
|
189
179
|
|
|
190
180
|
:param rgb:
|
|
191
181
|
"""
|
|
192
|
-
...
|
|
193
182
|
|
|
194
183
|
def __get__(self, instance, owner) -> typing_extensions.Self:
|
|
195
184
|
"""
|
|
@@ -199,7 +188,6 @@ class Color:
|
|
|
199
188
|
:return:
|
|
200
189
|
:rtype: typing_extensions.Self
|
|
201
190
|
"""
|
|
202
|
-
...
|
|
203
191
|
|
|
204
192
|
def __set__(
|
|
205
193
|
self, instance, value: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -210,7 +198,6 @@ class Color:
|
|
|
210
198
|
:param value:
|
|
211
199
|
:type value: collections.abc.Sequence[float] | typing_extensions.Self
|
|
212
200
|
"""
|
|
213
|
-
...
|
|
214
201
|
|
|
215
202
|
def __add__(
|
|
216
203
|
self, other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -222,7 +209,6 @@ class Color:
|
|
|
222
209
|
:return:
|
|
223
210
|
:rtype: typing_extensions.Self
|
|
224
211
|
"""
|
|
225
|
-
...
|
|
226
212
|
|
|
227
213
|
def __sub__(
|
|
228
214
|
self, other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -234,27 +220,24 @@ class Color:
|
|
|
234
220
|
:return:
|
|
235
221
|
:rtype: typing_extensions.Self
|
|
236
222
|
"""
|
|
237
|
-
...
|
|
238
223
|
|
|
239
|
-
def __mul__(self, other: float
|
|
224
|
+
def __mul__(self, other: float) -> typing_extensions.Self:
|
|
240
225
|
"""
|
|
241
226
|
|
|
242
227
|
:param other:
|
|
243
|
-
:type other: float
|
|
228
|
+
:type other: float
|
|
244
229
|
:return:
|
|
245
230
|
:rtype: typing_extensions.Self
|
|
246
231
|
"""
|
|
247
|
-
...
|
|
248
232
|
|
|
249
|
-
def __truediv__(self, other: float
|
|
233
|
+
def __truediv__(self, other: float) -> typing_extensions.Self:
|
|
250
234
|
"""
|
|
251
235
|
|
|
252
236
|
:param other:
|
|
253
|
-
:type other: float
|
|
237
|
+
:type other: float
|
|
254
238
|
:return:
|
|
255
239
|
:rtype: typing_extensions.Self
|
|
256
240
|
"""
|
|
257
|
-
...
|
|
258
241
|
|
|
259
242
|
def __radd__(
|
|
260
243
|
self, other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -266,7 +249,6 @@ class Color:
|
|
|
266
249
|
:return:
|
|
267
250
|
:rtype: typing_extensions.Self
|
|
268
251
|
"""
|
|
269
|
-
...
|
|
270
252
|
|
|
271
253
|
def __rsub__(
|
|
272
254
|
self, other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -278,27 +260,24 @@ class Color:
|
|
|
278
260
|
:return:
|
|
279
261
|
:rtype: typing_extensions.Self
|
|
280
262
|
"""
|
|
281
|
-
...
|
|
282
263
|
|
|
283
|
-
def __rmul__(self, other: float
|
|
264
|
+
def __rmul__(self, other: float) -> typing_extensions.Self:
|
|
284
265
|
"""
|
|
285
266
|
|
|
286
267
|
:param other:
|
|
287
|
-
:type other: float
|
|
268
|
+
:type other: float
|
|
288
269
|
:return:
|
|
289
270
|
:rtype: typing_extensions.Self
|
|
290
271
|
"""
|
|
291
|
-
...
|
|
292
272
|
|
|
293
|
-
def __rtruediv__(self, other: float
|
|
273
|
+
def __rtruediv__(self, other: float) -> typing_extensions.Self:
|
|
294
274
|
"""
|
|
295
275
|
|
|
296
276
|
:param other:
|
|
297
|
-
:type other: float
|
|
277
|
+
:type other: float
|
|
298
278
|
:return:
|
|
299
279
|
:rtype: typing_extensions.Self
|
|
300
280
|
"""
|
|
301
|
-
...
|
|
302
281
|
|
|
303
282
|
def __iadd__(
|
|
304
283
|
self, other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -310,7 +289,6 @@ class Color:
|
|
|
310
289
|
:return:
|
|
311
290
|
:rtype: typing_extensions.Self
|
|
312
291
|
"""
|
|
313
|
-
...
|
|
314
292
|
|
|
315
293
|
def __isub__(
|
|
316
294
|
self, other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -322,27 +300,24 @@ class Color:
|
|
|
322
300
|
:return:
|
|
323
301
|
:rtype: typing_extensions.Self
|
|
324
302
|
"""
|
|
325
|
-
...
|
|
326
303
|
|
|
327
|
-
def __imul__(self, other: float
|
|
304
|
+
def __imul__(self, other: float) -> typing_extensions.Self:
|
|
328
305
|
"""
|
|
329
306
|
|
|
330
307
|
:param other:
|
|
331
|
-
:type other: float
|
|
308
|
+
:type other: float
|
|
332
309
|
:return:
|
|
333
310
|
:rtype: typing_extensions.Self
|
|
334
311
|
"""
|
|
335
|
-
...
|
|
336
312
|
|
|
337
|
-
def __itruediv__(self, other: float
|
|
313
|
+
def __itruediv__(self, other: float) -> typing_extensions.Self:
|
|
338
314
|
"""
|
|
339
315
|
|
|
340
316
|
:param other:
|
|
341
|
-
:type other: float
|
|
317
|
+
:type other: float
|
|
342
318
|
:return:
|
|
343
319
|
:rtype: typing_extensions.Self
|
|
344
320
|
"""
|
|
345
|
-
...
|
|
346
321
|
|
|
347
322
|
@typing.overload
|
|
348
323
|
def __getitem__(self, key: int) -> float:
|
|
@@ -353,7 +328,6 @@ class Color:
|
|
|
353
328
|
:return:
|
|
354
329
|
:rtype: float
|
|
355
330
|
"""
|
|
356
|
-
...
|
|
357
331
|
|
|
358
332
|
@typing.overload
|
|
359
333
|
def __getitem__(self, key: slice) -> tuple[float, ...]:
|
|
@@ -364,7 +338,6 @@ class Color:
|
|
|
364
338
|
:return:
|
|
365
339
|
:rtype: tuple[float, ...]
|
|
366
340
|
"""
|
|
367
|
-
...
|
|
368
341
|
|
|
369
342
|
@typing.overload
|
|
370
343
|
def __setitem__(self, key: int, value: float):
|
|
@@ -375,7 +348,6 @@ class Color:
|
|
|
375
348
|
:param value:
|
|
376
349
|
:type value: float
|
|
377
350
|
"""
|
|
378
|
-
...
|
|
379
351
|
|
|
380
352
|
@typing.overload
|
|
381
353
|
def __setitem__(self, key: slice, value: collections.abc.Iterable[float]):
|
|
@@ -386,7 +358,6 @@ class Color:
|
|
|
386
358
|
:param value:
|
|
387
359
|
:type value: collections.abc.Iterable[float]
|
|
388
360
|
"""
|
|
389
|
-
...
|
|
390
361
|
|
|
391
362
|
class Euler:
|
|
392
363
|
"""This object gives access to Eulers in Blender.`Euler angles <https://en.wikipedia.org/wiki/Euler_angles>`__ on Wikipedia."""
|
|
@@ -439,7 +410,6 @@ class Euler:
|
|
|
439
410
|
:return: A copy of the euler.
|
|
440
411
|
:rtype: typing_extensions.Self
|
|
441
412
|
"""
|
|
442
|
-
...
|
|
443
413
|
|
|
444
414
|
def freeze(self) -> typing_extensions.Self:
|
|
445
415
|
"""Make this object immutable.After this the object can be hashed, used in dictionaries & sets.
|
|
@@ -447,7 +417,6 @@ class Euler:
|
|
|
447
417
|
:return: An instance of this object.
|
|
448
418
|
:rtype: typing_extensions.Self
|
|
449
419
|
"""
|
|
450
|
-
...
|
|
451
420
|
|
|
452
421
|
def make_compatible(self, other):
|
|
453
422
|
"""Make this euler compatible with another,
|
|
@@ -455,7 +424,6 @@ class Euler:
|
|
|
455
424
|
|
|
456
425
|
:param other:
|
|
457
426
|
"""
|
|
458
|
-
...
|
|
459
427
|
|
|
460
428
|
def rotate(
|
|
461
429
|
self,
|
|
@@ -470,7 +438,6 @@ class Euler:
|
|
|
470
438
|
:param other: rotation component of mathutils value
|
|
471
439
|
:type other: Matrix | Quaternion | collections.abc.Sequence[collections.abc.Sequence[float]] | collections.abc.Sequence[float] | typing_extensions.Self
|
|
472
440
|
"""
|
|
473
|
-
...
|
|
474
441
|
|
|
475
442
|
def rotate_axis(self, axis: str, angle: float):
|
|
476
443
|
"""Rotates the euler a certain amount and returning a unique euler rotation
|
|
@@ -481,7 +448,6 @@ class Euler:
|
|
|
481
448
|
:param angle: angle in radians.
|
|
482
449
|
:type angle: float
|
|
483
450
|
"""
|
|
484
|
-
...
|
|
485
451
|
|
|
486
452
|
def to_matrix(self) -> Matrix:
|
|
487
453
|
"""Return a matrix representation of the euler.
|
|
@@ -489,7 +455,6 @@ class Euler:
|
|
|
489
455
|
:return: A 3x3 rotation matrix representation of the euler.
|
|
490
456
|
:rtype: Matrix
|
|
491
457
|
"""
|
|
492
|
-
...
|
|
493
458
|
|
|
494
459
|
def to_quaternion(self) -> Quaternion:
|
|
495
460
|
"""Return a quaternion representation of the euler.
|
|
@@ -497,11 +462,9 @@ class Euler:
|
|
|
497
462
|
:return: Quaternion representation of the euler.
|
|
498
463
|
:rtype: Quaternion
|
|
499
464
|
"""
|
|
500
|
-
...
|
|
501
465
|
|
|
502
466
|
def zero(self):
|
|
503
467
|
"""Set all values to zero."""
|
|
504
|
-
...
|
|
505
468
|
|
|
506
469
|
def __init__(self, angles=(0.0, 0.0, 0.0), order="XYZ"):
|
|
507
470
|
"""
|
|
@@ -509,7 +472,6 @@ class Euler:
|
|
|
509
472
|
:param angles:
|
|
510
473
|
:param order:
|
|
511
474
|
"""
|
|
512
|
-
...
|
|
513
475
|
|
|
514
476
|
def __get__(self, instance, owner) -> typing_extensions.Self:
|
|
515
477
|
"""
|
|
@@ -519,7 +481,6 @@ class Euler:
|
|
|
519
481
|
:return:
|
|
520
482
|
:rtype: typing_extensions.Self
|
|
521
483
|
"""
|
|
522
|
-
...
|
|
523
484
|
|
|
524
485
|
def __set__(
|
|
525
486
|
self, instance, value: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -530,7 +491,6 @@ class Euler:
|
|
|
530
491
|
:param value:
|
|
531
492
|
:type value: collections.abc.Sequence[float] | typing_extensions.Self
|
|
532
493
|
"""
|
|
533
|
-
...
|
|
534
494
|
|
|
535
495
|
@typing.overload
|
|
536
496
|
def __getitem__(self, key: int) -> float:
|
|
@@ -541,7 +501,6 @@ class Euler:
|
|
|
541
501
|
:return:
|
|
542
502
|
:rtype: float
|
|
543
503
|
"""
|
|
544
|
-
...
|
|
545
504
|
|
|
546
505
|
@typing.overload
|
|
547
506
|
def __getitem__(self, key: slice) -> tuple[float, ...]:
|
|
@@ -552,7 +511,6 @@ class Euler:
|
|
|
552
511
|
:return:
|
|
553
512
|
:rtype: tuple[float, ...]
|
|
554
513
|
"""
|
|
555
|
-
...
|
|
556
514
|
|
|
557
515
|
@typing.overload
|
|
558
516
|
def __setitem__(self, key: int, value: float):
|
|
@@ -563,7 +521,6 @@ class Euler:
|
|
|
563
521
|
:param value:
|
|
564
522
|
:type value: float
|
|
565
523
|
"""
|
|
566
|
-
...
|
|
567
524
|
|
|
568
525
|
@typing.overload
|
|
569
526
|
def __setitem__(self, key: slice, value: collections.abc.Iterable[float]):
|
|
@@ -574,7 +531,6 @@ class Euler:
|
|
|
574
531
|
:param value:
|
|
575
532
|
:type value: collections.abc.Iterable[float]
|
|
576
533
|
"""
|
|
577
|
-
...
|
|
578
534
|
|
|
579
535
|
class Matrix:
|
|
580
536
|
"""This object gives access to Matrices in Blender, supporting square and rectangular
|
|
@@ -655,7 +611,6 @@ class Matrix:
|
|
|
655
611
|
:return: A diagonal matrix.
|
|
656
612
|
:rtype: typing_extensions.Self
|
|
657
613
|
"""
|
|
658
|
-
...
|
|
659
614
|
|
|
660
615
|
@classmethod
|
|
661
616
|
def Identity(cls, size: int) -> typing_extensions.Self:
|
|
@@ -666,7 +621,6 @@ class Matrix:
|
|
|
666
621
|
:return: A new identity matrix.
|
|
667
622
|
:rtype: typing_extensions.Self
|
|
668
623
|
"""
|
|
669
|
-
...
|
|
670
624
|
|
|
671
625
|
@classmethod
|
|
672
626
|
def LocRotScale(
|
|
@@ -687,7 +641,6 @@ class Matrix:
|
|
|
687
641
|
:return: Combined transformation matrix.
|
|
688
642
|
:rtype: typing_extensions.Self
|
|
689
643
|
"""
|
|
690
|
-
...
|
|
691
644
|
|
|
692
645
|
@classmethod
|
|
693
646
|
def OrthoProjection(
|
|
@@ -704,7 +657,6 @@ class Matrix:
|
|
|
704
657
|
:return: A new projection matrix.
|
|
705
658
|
:rtype: typing_extensions.Self
|
|
706
659
|
"""
|
|
707
|
-
...
|
|
708
660
|
|
|
709
661
|
@classmethod
|
|
710
662
|
def Rotation(
|
|
@@ -725,7 +677,6 @@ class Matrix:
|
|
|
725
677
|
:return: A new rotation matrix.
|
|
726
678
|
:rtype: typing_extensions.Self
|
|
727
679
|
"""
|
|
728
|
-
...
|
|
729
680
|
|
|
730
681
|
@classmethod
|
|
731
682
|
def Scale(
|
|
@@ -745,7 +696,6 @@ class Matrix:
|
|
|
745
696
|
:return: A new scale matrix.
|
|
746
697
|
:rtype: typing_extensions.Self
|
|
747
698
|
"""
|
|
748
|
-
...
|
|
749
699
|
|
|
750
700
|
@classmethod
|
|
751
701
|
def Shear(cls, plane: str, size: int, factor: float) -> typing_extensions.Self:
|
|
@@ -762,7 +712,6 @@ class Matrix:
|
|
|
762
712
|
:return: A new shear matrix.
|
|
763
713
|
:rtype: typing_extensions.Self
|
|
764
714
|
"""
|
|
765
|
-
...
|
|
766
715
|
|
|
767
716
|
@classmethod
|
|
768
717
|
def Translation(
|
|
@@ -775,11 +724,9 @@ class Matrix:
|
|
|
775
724
|
:return: An identity matrix with a translation.
|
|
776
725
|
:rtype: typing_extensions.Self
|
|
777
726
|
"""
|
|
778
|
-
...
|
|
779
727
|
|
|
780
728
|
def adjugate(self):
|
|
781
729
|
"""Set the matrix to its adjugate.`Adjugate matrix <https://en.wikipedia.org/wiki/Adjugate_matrix>`__ on Wikipedia."""
|
|
782
|
-
...
|
|
783
730
|
|
|
784
731
|
def adjugated(self) -> typing_extensions.Self:
|
|
785
732
|
"""Return an adjugated copy of the matrix.
|
|
@@ -787,7 +734,6 @@ class Matrix:
|
|
|
787
734
|
:return: the adjugated matrix.
|
|
788
735
|
:rtype: typing_extensions.Self
|
|
789
736
|
"""
|
|
790
|
-
...
|
|
791
737
|
|
|
792
738
|
def copy(self) -> typing_extensions.Self:
|
|
793
739
|
"""Returns a copy of this matrix.
|
|
@@ -795,7 +741,6 @@ class Matrix:
|
|
|
795
741
|
:return: an instance of itself
|
|
796
742
|
:rtype: typing_extensions.Self
|
|
797
743
|
"""
|
|
798
|
-
...
|
|
799
744
|
|
|
800
745
|
def decompose(self) -> tuple[Vector, Quaternion, Vector]:
|
|
801
746
|
"""Return the translation, rotation, and scale components of this matrix.
|
|
@@ -803,7 +748,6 @@ class Matrix:
|
|
|
803
748
|
:return: tuple of translation, rotation, and scale
|
|
804
749
|
:rtype: tuple[Vector, Quaternion, Vector]
|
|
805
750
|
"""
|
|
806
|
-
...
|
|
807
751
|
|
|
808
752
|
def determinant(self) -> float:
|
|
809
753
|
"""Return the determinant of a matrix.`Determinant <https://en.wikipedia.org/wiki/Determinant>`__ on Wikipedia.
|
|
@@ -811,7 +755,6 @@ class Matrix:
|
|
|
811
755
|
:return: Return the determinant of a matrix.
|
|
812
756
|
:rtype: float
|
|
813
757
|
"""
|
|
814
|
-
...
|
|
815
758
|
|
|
816
759
|
def freeze(self) -> typing_extensions.Self:
|
|
817
760
|
"""Make this object immutable.After this the object can be hashed, used in dictionaries & sets.
|
|
@@ -819,11 +762,9 @@ class Matrix:
|
|
|
819
762
|
:return: An instance of this object.
|
|
820
763
|
:rtype: typing_extensions.Self
|
|
821
764
|
"""
|
|
822
|
-
...
|
|
823
765
|
|
|
824
766
|
def identity(self):
|
|
825
767
|
"""Set the matrix to the identity matrix.`Identity matrix <https://en.wikipedia.org/wiki/Identity_matrix>`__ on Wikipedia."""
|
|
826
|
-
...
|
|
827
768
|
|
|
828
769
|
def invert(
|
|
829
770
|
self,
|
|
@@ -836,7 +777,6 @@ class Matrix:
|
|
|
836
777
|
(instead of raising a `ValueError` exception).
|
|
837
778
|
:type fallback: collections.abc.Sequence[collections.abc.Sequence[float]] | typing_extensions.Self
|
|
838
779
|
"""
|
|
839
|
-
...
|
|
840
780
|
|
|
841
781
|
def invert_safe(self):
|
|
842
782
|
"""Set the matrix to its inverse, will never error.
|
|
@@ -844,7 +784,6 @@ class Matrix:
|
|
|
844
784
|
If tweaked matrix is still degenerated, set to the identity matrix instead.`Inverse Matrix <https://en.wikipedia.org/wiki/Inverse_matrix>`__ on Wikipedia.
|
|
845
785
|
|
|
846
786
|
"""
|
|
847
|
-
...
|
|
848
787
|
|
|
849
788
|
def inverted(self, fallback: typing.Any = None) -> typing_extensions.Self:
|
|
850
789
|
"""Return an inverted copy of the matrix.
|
|
@@ -855,7 +794,6 @@ class Matrix:
|
|
|
855
794
|
:return: the inverted matrix or fallback when given.
|
|
856
795
|
:rtype: typing_extensions.Self
|
|
857
796
|
"""
|
|
858
|
-
...
|
|
859
797
|
|
|
860
798
|
def inverted_safe(self) -> typing_extensions.Self:
|
|
861
799
|
"""Return an inverted copy of the matrix, will never error.
|
|
@@ -865,7 +803,6 @@ class Matrix:
|
|
|
865
803
|
:return: the inverted matrix.
|
|
866
804
|
:rtype: typing_extensions.Self
|
|
867
805
|
"""
|
|
868
|
-
...
|
|
869
806
|
|
|
870
807
|
def lerp(
|
|
871
808
|
self,
|
|
@@ -882,11 +819,9 @@ class Matrix:
|
|
|
882
819
|
:return: The interpolated matrix.
|
|
883
820
|
:rtype: typing_extensions.Self
|
|
884
821
|
"""
|
|
885
|
-
...
|
|
886
822
|
|
|
887
823
|
def normalize(self):
|
|
888
824
|
"""Normalize each of the matrix columns."""
|
|
889
|
-
...
|
|
890
825
|
|
|
891
826
|
def normalized(self) -> typing_extensions.Self:
|
|
892
827
|
"""Return a column normalized matrix
|
|
@@ -894,11 +829,9 @@ class Matrix:
|
|
|
894
829
|
:return: a column normalized matrix
|
|
895
830
|
:rtype: typing_extensions.Self
|
|
896
831
|
"""
|
|
897
|
-
...
|
|
898
832
|
|
|
899
833
|
def resize_4x4(self):
|
|
900
834
|
"""Resize the matrix to 4x4."""
|
|
901
|
-
...
|
|
902
835
|
|
|
903
836
|
def rotate(
|
|
904
837
|
self,
|
|
@@ -913,7 +846,6 @@ class Matrix:
|
|
|
913
846
|
:param other: rotation component of mathutils value
|
|
914
847
|
:type other: Euler | Quaternion | collections.abc.Sequence[collections.abc.Sequence[float]] | collections.abc.Sequence[float] | typing_extensions.Self
|
|
915
848
|
"""
|
|
916
|
-
...
|
|
917
849
|
|
|
918
850
|
def to_2x2(self) -> typing_extensions.Self:
|
|
919
851
|
"""Return a 2x2 copy of this matrix.
|
|
@@ -921,7 +853,6 @@ class Matrix:
|
|
|
921
853
|
:return: a new matrix.
|
|
922
854
|
:rtype: typing_extensions.Self
|
|
923
855
|
"""
|
|
924
|
-
...
|
|
925
856
|
|
|
926
857
|
def to_3x3(self) -> typing_extensions.Self:
|
|
927
858
|
"""Return a 3x3 copy of this matrix.
|
|
@@ -929,7 +860,6 @@ class Matrix:
|
|
|
929
860
|
:return: a new matrix.
|
|
930
861
|
:rtype: typing_extensions.Self
|
|
931
862
|
"""
|
|
932
|
-
...
|
|
933
863
|
|
|
934
864
|
def to_4x4(self) -> typing_extensions.Self:
|
|
935
865
|
"""Return a 4x4 copy of this matrix.
|
|
@@ -937,7 +867,6 @@ class Matrix:
|
|
|
937
867
|
:return: a new matrix.
|
|
938
868
|
:rtype: typing_extensions.Self
|
|
939
869
|
"""
|
|
940
|
-
...
|
|
941
870
|
|
|
942
871
|
def to_euler(
|
|
943
872
|
self,
|
|
@@ -957,7 +886,6 @@ class Matrix:
|
|
|
957
886
|
:return: Euler representation of the matrix.
|
|
958
887
|
:rtype: Euler
|
|
959
888
|
"""
|
|
960
|
-
...
|
|
961
889
|
|
|
962
890
|
def to_quaternion(self) -> Quaternion:
|
|
963
891
|
"""Return a quaternion representation of the rotation matrix.
|
|
@@ -965,7 +893,6 @@ class Matrix:
|
|
|
965
893
|
:return: Quaternion representation of the rotation matrix.
|
|
966
894
|
:rtype: Quaternion
|
|
967
895
|
"""
|
|
968
|
-
...
|
|
969
896
|
|
|
970
897
|
def to_scale(self) -> Vector:
|
|
971
898
|
"""Return the scale part of a 3x3 or 4x4 matrix.
|
|
@@ -973,7 +900,6 @@ class Matrix:
|
|
|
973
900
|
:return: Return the scale of a matrix.
|
|
974
901
|
:rtype: Vector
|
|
975
902
|
"""
|
|
976
|
-
...
|
|
977
903
|
|
|
978
904
|
def to_translation(self) -> Vector:
|
|
979
905
|
"""Return the translation part of a 4 row matrix.
|
|
@@ -981,11 +907,9 @@ class Matrix:
|
|
|
981
907
|
:return: Return the translation of a matrix.
|
|
982
908
|
:rtype: Vector
|
|
983
909
|
"""
|
|
984
|
-
...
|
|
985
910
|
|
|
986
911
|
def transpose(self):
|
|
987
912
|
"""Set the matrix to its transpose.`Transpose <https://en.wikipedia.org/wiki/Transpose>`__ on Wikipedia."""
|
|
988
|
-
...
|
|
989
913
|
|
|
990
914
|
def transposed(self) -> typing_extensions.Self:
|
|
991
915
|
"""Return a new, transposed matrix.
|
|
@@ -993,11 +917,9 @@ class Matrix:
|
|
|
993
917
|
:return: a transposed matrix
|
|
994
918
|
:rtype: typing_extensions.Self
|
|
995
919
|
"""
|
|
996
|
-
...
|
|
997
920
|
|
|
998
921
|
def zero(self):
|
|
999
922
|
"""Set all the matrix values to zero."""
|
|
1000
|
-
...
|
|
1001
923
|
|
|
1002
924
|
def __init__(
|
|
1003
925
|
self,
|
|
@@ -1012,7 +934,6 @@ class Matrix:
|
|
|
1012
934
|
|
|
1013
935
|
:param rows:
|
|
1014
936
|
"""
|
|
1015
|
-
...
|
|
1016
937
|
|
|
1017
938
|
def __get__(self, instance, owner) -> typing_extensions.Self:
|
|
1018
939
|
"""
|
|
@@ -1022,7 +943,6 @@ class Matrix:
|
|
|
1022
943
|
:return:
|
|
1023
944
|
:rtype: typing_extensions.Self
|
|
1024
945
|
"""
|
|
1025
|
-
...
|
|
1026
946
|
|
|
1027
947
|
def __set__(
|
|
1028
948
|
self,
|
|
@@ -1036,7 +956,6 @@ class Matrix:
|
|
|
1036
956
|
:param value:
|
|
1037
957
|
:type value: collections.abc.Sequence[collections.abc.Sequence[float]] | typing_extensions.Self
|
|
1038
958
|
"""
|
|
1039
|
-
...
|
|
1040
959
|
|
|
1041
960
|
@typing.overload
|
|
1042
961
|
def __getitem__(self, key: int) -> Vector:
|
|
@@ -1047,7 +966,6 @@ class Matrix:
|
|
|
1047
966
|
:return:
|
|
1048
967
|
:rtype: Vector
|
|
1049
968
|
"""
|
|
1050
|
-
...
|
|
1051
969
|
|
|
1052
970
|
@typing.overload
|
|
1053
971
|
def __getitem__(self, key: slice) -> tuple[Vector, ...]:
|
|
@@ -1058,7 +976,6 @@ class Matrix:
|
|
|
1058
976
|
:return:
|
|
1059
977
|
:rtype: tuple[Vector, ...]
|
|
1060
978
|
"""
|
|
1061
|
-
...
|
|
1062
979
|
|
|
1063
980
|
@typing.overload
|
|
1064
981
|
def __setitem__(self, key: int, value: Vector | collections.abc.Iterable[float]):
|
|
@@ -1069,7 +986,6 @@ class Matrix:
|
|
|
1069
986
|
:param value:
|
|
1070
987
|
:type value: Vector | collections.abc.Iterable[float]
|
|
1071
988
|
"""
|
|
1072
|
-
...
|
|
1073
989
|
|
|
1074
990
|
@typing.overload
|
|
1075
991
|
def __setitem__(
|
|
@@ -1084,7 +1000,6 @@ class Matrix:
|
|
|
1084
1000
|
:param value:
|
|
1085
1001
|
:type value: collections.abc.Iterable[Vector | collections.abc.Iterable[float]]
|
|
1086
1002
|
"""
|
|
1087
|
-
...
|
|
1088
1003
|
|
|
1089
1004
|
def __len__(self) -> int:
|
|
1090
1005
|
"""
|
|
@@ -1092,7 +1007,6 @@ class Matrix:
|
|
|
1092
1007
|
:return:
|
|
1093
1008
|
:rtype: int
|
|
1094
1009
|
"""
|
|
1095
|
-
...
|
|
1096
1010
|
|
|
1097
1011
|
def __add__(
|
|
1098
1012
|
self,
|
|
@@ -1106,7 +1020,6 @@ class Matrix:
|
|
|
1106
1020
|
:return:
|
|
1107
1021
|
:rtype: typing_extensions.Self
|
|
1108
1022
|
"""
|
|
1109
|
-
...
|
|
1110
1023
|
|
|
1111
1024
|
def __sub__(
|
|
1112
1025
|
self,
|
|
@@ -1120,17 +1033,15 @@ class Matrix:
|
|
|
1120
1033
|
:return:
|
|
1121
1034
|
:rtype: typing_extensions.Self
|
|
1122
1035
|
"""
|
|
1123
|
-
...
|
|
1124
1036
|
|
|
1125
|
-
def __mul__(self, other: float
|
|
1037
|
+
def __mul__(self, other: float) -> typing_extensions.Self:
|
|
1126
1038
|
"""
|
|
1127
1039
|
|
|
1128
1040
|
:param other:
|
|
1129
|
-
:type other: float
|
|
1041
|
+
:type other: float
|
|
1130
1042
|
:return:
|
|
1131
1043
|
:rtype: typing_extensions.Self
|
|
1132
1044
|
"""
|
|
1133
|
-
...
|
|
1134
1045
|
|
|
1135
1046
|
@typing.overload
|
|
1136
1047
|
def __matmul__(
|
|
@@ -1145,7 +1056,6 @@ class Matrix:
|
|
|
1145
1056
|
:return:
|
|
1146
1057
|
:rtype: typing_extensions.Self
|
|
1147
1058
|
"""
|
|
1148
|
-
...
|
|
1149
1059
|
|
|
1150
1060
|
@typing.overload
|
|
1151
1061
|
def __matmul__(self, other: Vector | collections.abc.Sequence[float]) -> Vector:
|
|
@@ -1156,7 +1066,6 @@ class Matrix:
|
|
|
1156
1066
|
:return:
|
|
1157
1067
|
:rtype: Vector
|
|
1158
1068
|
"""
|
|
1159
|
-
...
|
|
1160
1069
|
|
|
1161
1070
|
def __radd__(
|
|
1162
1071
|
self,
|
|
@@ -1170,7 +1079,6 @@ class Matrix:
|
|
|
1170
1079
|
:return:
|
|
1171
1080
|
:rtype: typing_extensions.Self
|
|
1172
1081
|
"""
|
|
1173
|
-
...
|
|
1174
1082
|
|
|
1175
1083
|
def __rsub__(
|
|
1176
1084
|
self,
|
|
@@ -1184,27 +1092,24 @@ class Matrix:
|
|
|
1184
1092
|
:return:
|
|
1185
1093
|
:rtype: typing_extensions.Self
|
|
1186
1094
|
"""
|
|
1187
|
-
...
|
|
1188
1095
|
|
|
1189
|
-
def __rmul__(self, other: float
|
|
1096
|
+
def __rmul__(self, other: float) -> typing_extensions.Self:
|
|
1190
1097
|
"""
|
|
1191
1098
|
|
|
1192
1099
|
:param other:
|
|
1193
|
-
:type other: float
|
|
1100
|
+
:type other: float
|
|
1194
1101
|
:return:
|
|
1195
1102
|
:rtype: typing_extensions.Self
|
|
1196
1103
|
"""
|
|
1197
|
-
...
|
|
1198
1104
|
|
|
1199
|
-
def __imul__(self, other: float
|
|
1105
|
+
def __imul__(self, other: float) -> typing_extensions.Self:
|
|
1200
1106
|
"""
|
|
1201
1107
|
|
|
1202
1108
|
:param other:
|
|
1203
|
-
:type other: float
|
|
1109
|
+
:type other: float
|
|
1204
1110
|
:return:
|
|
1205
1111
|
:rtype: typing_extensions.Self
|
|
1206
1112
|
"""
|
|
1207
|
-
...
|
|
1208
1113
|
|
|
1209
1114
|
class Quaternion:
|
|
1210
1115
|
"""This object gives access to Quaternions in Blender.The constructor takes arguments in various forms:"""
|
|
@@ -1274,7 +1179,6 @@ class Quaternion:
|
|
|
1274
1179
|
|
|
1275
1180
|
def conjugate(self):
|
|
1276
1181
|
"""Set the quaternion to its conjugate (negate x, y, z)."""
|
|
1277
|
-
...
|
|
1278
1182
|
|
|
1279
1183
|
def conjugated(self) -> typing_extensions.Self:
|
|
1280
1184
|
"""Return a new conjugated quaternion.
|
|
@@ -1282,7 +1186,6 @@ class Quaternion:
|
|
|
1282
1186
|
:return: a new quaternion.
|
|
1283
1187
|
:rtype: typing_extensions.Self
|
|
1284
1188
|
"""
|
|
1285
|
-
...
|
|
1286
1189
|
|
|
1287
1190
|
def copy(self) -> typing_extensions.Self:
|
|
1288
1191
|
"""Returns a copy of this quaternion.
|
|
@@ -1290,7 +1193,6 @@ class Quaternion:
|
|
|
1290
1193
|
:return: A copy of the quaternion.
|
|
1291
1194
|
:rtype: typing_extensions.Self
|
|
1292
1195
|
"""
|
|
1293
|
-
...
|
|
1294
1196
|
|
|
1295
1197
|
def cross(
|
|
1296
1198
|
self, other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -1302,7 +1204,6 @@ class Quaternion:
|
|
|
1302
1204
|
:return: The cross product.
|
|
1303
1205
|
:rtype: typing_extensions.Self
|
|
1304
1206
|
"""
|
|
1305
|
-
...
|
|
1306
1207
|
|
|
1307
1208
|
def dot(
|
|
1308
1209
|
self, other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -1314,7 +1215,6 @@ class Quaternion:
|
|
|
1314
1215
|
:return: The dot product.
|
|
1315
1216
|
:rtype: float
|
|
1316
1217
|
"""
|
|
1317
|
-
...
|
|
1318
1218
|
|
|
1319
1219
|
def freeze(self) -> typing_extensions.Self:
|
|
1320
1220
|
"""Make this object immutable.After this the object can be hashed, used in dictionaries & sets.
|
|
@@ -1322,15 +1222,12 @@ class Quaternion:
|
|
|
1322
1222
|
:return: An instance of this object.
|
|
1323
1223
|
:rtype: typing_extensions.Self
|
|
1324
1224
|
"""
|
|
1325
|
-
...
|
|
1326
1225
|
|
|
1327
1226
|
def identity(self):
|
|
1328
1227
|
"""Set the quaternion to an identity quaternion."""
|
|
1329
|
-
...
|
|
1330
1228
|
|
|
1331
1229
|
def invert(self):
|
|
1332
1230
|
"""Set the quaternion to its inverse."""
|
|
1333
|
-
...
|
|
1334
1231
|
|
|
1335
1232
|
def inverted(self) -> typing_extensions.Self:
|
|
1336
1233
|
"""Return a new, inverted quaternion.
|
|
@@ -1338,7 +1235,6 @@ class Quaternion:
|
|
|
1338
1235
|
:return: the inverted value.
|
|
1339
1236
|
:rtype: typing_extensions.Self
|
|
1340
1237
|
"""
|
|
1341
|
-
...
|
|
1342
1238
|
|
|
1343
1239
|
def make_compatible(self, other):
|
|
1344
1240
|
"""Make this quaternion compatible with another,
|
|
@@ -1346,15 +1242,12 @@ class Quaternion:
|
|
|
1346
1242
|
|
|
1347
1243
|
:param other:
|
|
1348
1244
|
"""
|
|
1349
|
-
...
|
|
1350
1245
|
|
|
1351
1246
|
def negate(self):
|
|
1352
1247
|
"""Set the quaternion to its negative."""
|
|
1353
|
-
...
|
|
1354
1248
|
|
|
1355
1249
|
def normalize(self):
|
|
1356
1250
|
"""Normalize the quaternion."""
|
|
1357
|
-
...
|
|
1358
1251
|
|
|
1359
1252
|
def normalized(self) -> typing_extensions.Self:
|
|
1360
1253
|
"""Return a new normalized quaternion.
|
|
@@ -1362,7 +1255,6 @@ class Quaternion:
|
|
|
1362
1255
|
:return: a normalized copy.
|
|
1363
1256
|
:rtype: typing_extensions.Self
|
|
1364
1257
|
"""
|
|
1365
|
-
...
|
|
1366
1258
|
|
|
1367
1259
|
def rotate(
|
|
1368
1260
|
self,
|
|
@@ -1377,7 +1269,6 @@ class Quaternion:
|
|
|
1377
1269
|
:param other: rotation component of mathutils value
|
|
1378
1270
|
:type other: Euler | Matrix | collections.abc.Sequence[collections.abc.Sequence[float]] | collections.abc.Sequence[float] | typing_extensions.Self
|
|
1379
1271
|
"""
|
|
1380
|
-
...
|
|
1381
1272
|
|
|
1382
1273
|
def rotation_difference(
|
|
1383
1274
|
self, other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -1389,7 +1280,6 @@ class Quaternion:
|
|
|
1389
1280
|
:return: the rotational difference between the two quat rotations.
|
|
1390
1281
|
:rtype: typing_extensions.Self
|
|
1391
1282
|
"""
|
|
1392
|
-
...
|
|
1393
1283
|
|
|
1394
1284
|
def slerp(
|
|
1395
1285
|
self,
|
|
@@ -1405,7 +1295,6 @@ class Quaternion:
|
|
|
1405
1295
|
:return: The interpolated rotation.
|
|
1406
1296
|
:rtype: typing_extensions.Self
|
|
1407
1297
|
"""
|
|
1408
|
-
...
|
|
1409
1298
|
|
|
1410
1299
|
def to_axis_angle(self) -> tuple[Vector, float]:
|
|
1411
1300
|
"""Return the axis, angle representation of the quaternion.
|
|
@@ -1413,7 +1302,6 @@ class Quaternion:
|
|
|
1413
1302
|
:return: axis, angle.
|
|
1414
1303
|
:rtype: tuple[Vector, float]
|
|
1415
1304
|
"""
|
|
1416
|
-
...
|
|
1417
1305
|
|
|
1418
1306
|
def to_euler(
|
|
1419
1307
|
self,
|
|
@@ -1432,7 +1320,6 @@ class Quaternion:
|
|
|
1432
1320
|
:return: Euler representation of the quaternion.
|
|
1433
1321
|
:rtype: Euler
|
|
1434
1322
|
"""
|
|
1435
|
-
...
|
|
1436
1323
|
|
|
1437
1324
|
def to_exponential_map(self):
|
|
1438
1325
|
"""Return the exponential map representation of the quaternion.This representation consist of the rotation axis multiplied by the rotation angle.
|
|
@@ -1440,7 +1327,6 @@ class Quaternion:
|
|
|
1440
1327
|
|
|
1441
1328
|
:return: exponential map.
|
|
1442
1329
|
"""
|
|
1443
|
-
...
|
|
1444
1330
|
|
|
1445
1331
|
def to_matrix(self) -> Matrix:
|
|
1446
1332
|
"""Return a matrix representation of the quaternion.
|
|
@@ -1448,7 +1334,6 @@ class Quaternion:
|
|
|
1448
1334
|
:return: A 3x3 rotation matrix representation of the quaternion.
|
|
1449
1335
|
:rtype: Matrix
|
|
1450
1336
|
"""
|
|
1451
|
-
...
|
|
1452
1337
|
|
|
1453
1338
|
def to_swing_twist(self, axis) -> tuple[Quaternion, float]:
|
|
1454
1339
|
"""Split the rotation into a swing quaternion with the specified
|
|
@@ -1458,14 +1343,12 @@ class Quaternion:
|
|
|
1458
1343
|
:return: swing, twist angle.
|
|
1459
1344
|
:rtype: tuple[Quaternion, float]
|
|
1460
1345
|
"""
|
|
1461
|
-
...
|
|
1462
1346
|
|
|
1463
1347
|
def __init__(self, seq=(1.0, 0.0, 0.0, 0.0)):
|
|
1464
1348
|
"""
|
|
1465
1349
|
|
|
1466
1350
|
:param seq:
|
|
1467
1351
|
"""
|
|
1468
|
-
...
|
|
1469
1352
|
|
|
1470
1353
|
def __get__(self, instance, owner) -> typing_extensions.Self:
|
|
1471
1354
|
"""
|
|
@@ -1475,7 +1358,6 @@ class Quaternion:
|
|
|
1475
1358
|
:return:
|
|
1476
1359
|
:rtype: typing_extensions.Self
|
|
1477
1360
|
"""
|
|
1478
|
-
...
|
|
1479
1361
|
|
|
1480
1362
|
def __set__(
|
|
1481
1363
|
self, instance, value: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -1486,7 +1368,6 @@ class Quaternion:
|
|
|
1486
1368
|
:param value:
|
|
1487
1369
|
:type value: collections.abc.Sequence[float] | typing_extensions.Self
|
|
1488
1370
|
"""
|
|
1489
|
-
...
|
|
1490
1371
|
|
|
1491
1372
|
def __len__(self) -> int:
|
|
1492
1373
|
"""
|
|
@@ -1494,7 +1375,6 @@ class Quaternion:
|
|
|
1494
1375
|
:return:
|
|
1495
1376
|
:rtype: int
|
|
1496
1377
|
"""
|
|
1497
|
-
...
|
|
1498
1378
|
|
|
1499
1379
|
@typing.overload
|
|
1500
1380
|
def __getitem__(self, key: int) -> float:
|
|
@@ -1505,7 +1385,6 @@ class Quaternion:
|
|
|
1505
1385
|
:return:
|
|
1506
1386
|
:rtype: float
|
|
1507
1387
|
"""
|
|
1508
|
-
...
|
|
1509
1388
|
|
|
1510
1389
|
@typing.overload
|
|
1511
1390
|
def __getitem__(self, key: slice) -> tuple[float, ...]:
|
|
@@ -1516,7 +1395,6 @@ class Quaternion:
|
|
|
1516
1395
|
:return:
|
|
1517
1396
|
:rtype: tuple[float, ...]
|
|
1518
1397
|
"""
|
|
1519
|
-
...
|
|
1520
1398
|
|
|
1521
1399
|
@typing.overload
|
|
1522
1400
|
def __setitem__(self, key: int, value: float):
|
|
@@ -1527,7 +1405,6 @@ class Quaternion:
|
|
|
1527
1405
|
:param value:
|
|
1528
1406
|
:type value: float
|
|
1529
1407
|
"""
|
|
1530
|
-
...
|
|
1531
1408
|
|
|
1532
1409
|
@typing.overload
|
|
1533
1410
|
def __setitem__(self, key: slice, value: collections.abc.Iterable[float]):
|
|
@@ -1538,7 +1415,6 @@ class Quaternion:
|
|
|
1538
1415
|
:param value:
|
|
1539
1416
|
:type value: collections.abc.Iterable[float]
|
|
1540
1417
|
"""
|
|
1541
|
-
...
|
|
1542
1418
|
|
|
1543
1419
|
def __add__(
|
|
1544
1420
|
self, other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -1550,7 +1426,6 @@ class Quaternion:
|
|
|
1550
1426
|
:return:
|
|
1551
1427
|
:rtype: typing_extensions.Self
|
|
1552
1428
|
"""
|
|
1553
|
-
...
|
|
1554
1429
|
|
|
1555
1430
|
def __sub__(
|
|
1556
1431
|
self, other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -1562,20 +1437,17 @@ class Quaternion:
|
|
|
1562
1437
|
:return:
|
|
1563
1438
|
:rtype: typing_extensions.Self
|
|
1564
1439
|
"""
|
|
1565
|
-
...
|
|
1566
1440
|
|
|
1567
1441
|
def __mul__(
|
|
1568
|
-
self,
|
|
1569
|
-
other: collections.abc.Sequence[float] | float | int | typing_extensions.Self,
|
|
1442
|
+
self, other: collections.abc.Sequence[float] | float | typing_extensions.Self
|
|
1570
1443
|
) -> typing_extensions.Self:
|
|
1571
1444
|
"""
|
|
1572
1445
|
|
|
1573
1446
|
:param other:
|
|
1574
|
-
:type other: collections.abc.Sequence[float] | float |
|
|
1447
|
+
:type other: collections.abc.Sequence[float] | float | typing_extensions.Self
|
|
1575
1448
|
:return:
|
|
1576
1449
|
:rtype: typing_extensions.Self
|
|
1577
1450
|
"""
|
|
1578
|
-
...
|
|
1579
1451
|
|
|
1580
1452
|
@typing.overload
|
|
1581
1453
|
def __matmul__(
|
|
@@ -1588,7 +1460,6 @@ class Quaternion:
|
|
|
1588
1460
|
:return:
|
|
1589
1461
|
:rtype: typing_extensions.Self
|
|
1590
1462
|
"""
|
|
1591
|
-
...
|
|
1592
1463
|
|
|
1593
1464
|
@typing.overload
|
|
1594
1465
|
def __matmul__(self, other: Vector | collections.abc.Sequence[float]) -> Vector:
|
|
@@ -1599,7 +1470,6 @@ class Quaternion:
|
|
|
1599
1470
|
:return:
|
|
1600
1471
|
:rtype: Vector
|
|
1601
1472
|
"""
|
|
1602
|
-
...
|
|
1603
1473
|
|
|
1604
1474
|
def __radd__(
|
|
1605
1475
|
self, other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -1611,7 +1481,6 @@ class Quaternion:
|
|
|
1611
1481
|
:return:
|
|
1612
1482
|
:rtype: typing_extensions.Self
|
|
1613
1483
|
"""
|
|
1614
|
-
...
|
|
1615
1484
|
|
|
1616
1485
|
def __rsub__(
|
|
1617
1486
|
self, other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -1623,33 +1492,28 @@ class Quaternion:
|
|
|
1623
1492
|
:return:
|
|
1624
1493
|
:rtype: typing_extensions.Self
|
|
1625
1494
|
"""
|
|
1626
|
-
...
|
|
1627
1495
|
|
|
1628
1496
|
def __rmul__(
|
|
1629
|
-
self,
|
|
1630
|
-
other: collections.abc.Sequence[float] | float | int | typing_extensions.Self,
|
|
1497
|
+
self, other: collections.abc.Sequence[float] | float | typing_extensions.Self
|
|
1631
1498
|
) -> typing_extensions.Self:
|
|
1632
1499
|
"""
|
|
1633
1500
|
|
|
1634
1501
|
:param other:
|
|
1635
|
-
:type other: collections.abc.Sequence[float] | float |
|
|
1502
|
+
:type other: collections.abc.Sequence[float] | float | typing_extensions.Self
|
|
1636
1503
|
:return:
|
|
1637
1504
|
:rtype: typing_extensions.Self
|
|
1638
1505
|
"""
|
|
1639
|
-
...
|
|
1640
1506
|
|
|
1641
1507
|
def __imul__(
|
|
1642
|
-
self,
|
|
1643
|
-
other: collections.abc.Sequence[float] | float | int | typing_extensions.Self,
|
|
1508
|
+
self, other: collections.abc.Sequence[float] | float | typing_extensions.Self
|
|
1644
1509
|
) -> typing_extensions.Self:
|
|
1645
1510
|
"""
|
|
1646
1511
|
|
|
1647
1512
|
:param other:
|
|
1648
|
-
:type other: collections.abc.Sequence[float] | float |
|
|
1513
|
+
:type other: collections.abc.Sequence[float] | float | typing_extensions.Self
|
|
1649
1514
|
:return:
|
|
1650
1515
|
:rtype: typing_extensions.Self
|
|
1651
1516
|
"""
|
|
1652
|
-
...
|
|
1653
1517
|
|
|
1654
1518
|
class Vector:
|
|
1655
1519
|
"""This object gives access to Vectors in Blender."""
|
|
@@ -3742,7 +3606,6 @@ class Vector:
|
|
|
3742
3606
|
:param fill: The value used to fill the vector.
|
|
3743
3607
|
:type fill: float
|
|
3744
3608
|
"""
|
|
3745
|
-
...
|
|
3746
3609
|
|
|
3747
3610
|
@classmethod
|
|
3748
3611
|
def Linspace(cls, start: int, stop: int, size: int):
|
|
@@ -3755,7 +3618,6 @@ class Vector:
|
|
|
3755
3618
|
:param size: The size of the vector to be created.
|
|
3756
3619
|
:type size: int
|
|
3757
3620
|
"""
|
|
3758
|
-
...
|
|
3759
3621
|
|
|
3760
3622
|
@classmethod
|
|
3761
3623
|
def Range(cls, start: int, stop: int, step: int = 1):
|
|
@@ -3768,7 +3630,6 @@ class Vector:
|
|
|
3768
3630
|
:param step: The step between successive values in the vector.
|
|
3769
3631
|
:type step: int
|
|
3770
3632
|
"""
|
|
3771
|
-
...
|
|
3772
3633
|
|
|
3773
3634
|
@classmethod
|
|
3774
3635
|
def Repeat(
|
|
@@ -3781,7 +3642,6 @@ class Vector:
|
|
|
3781
3642
|
:param size: The size of the vector to be created.
|
|
3782
3643
|
:type size: int
|
|
3783
3644
|
"""
|
|
3784
|
-
...
|
|
3785
3645
|
|
|
3786
3646
|
def angle(
|
|
3787
3647
|
self,
|
|
@@ -3798,7 +3658,6 @@ class Vector:
|
|
|
3798
3658
|
:return: angle in radians or fallback when given
|
|
3799
3659
|
:rtype: float
|
|
3800
3660
|
"""
|
|
3801
|
-
...
|
|
3802
3661
|
|
|
3803
3662
|
def angle_signed(
|
|
3804
3663
|
self,
|
|
@@ -3815,7 +3674,6 @@ class Vector:
|
|
|
3815
3674
|
:return: angle in radians or fallback when given
|
|
3816
3675
|
:rtype: float
|
|
3817
3676
|
"""
|
|
3818
|
-
...
|
|
3819
3677
|
|
|
3820
3678
|
def copy(self) -> typing_extensions.Self:
|
|
3821
3679
|
"""Returns a copy of this vector.
|
|
@@ -3823,7 +3681,6 @@ class Vector:
|
|
|
3823
3681
|
:return: A copy of the vector.
|
|
3824
3682
|
:rtype: typing_extensions.Self
|
|
3825
3683
|
"""
|
|
3826
|
-
...
|
|
3827
3684
|
|
|
3828
3685
|
def cross(
|
|
3829
3686
|
self, other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -3835,7 +3692,6 @@ class Vector:
|
|
|
3835
3692
|
:return: The cross product.
|
|
3836
3693
|
:rtype: typing_extensions.Self
|
|
3837
3694
|
"""
|
|
3838
|
-
...
|
|
3839
3695
|
|
|
3840
3696
|
def dot(
|
|
3841
3697
|
self, other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -3847,7 +3703,6 @@ class Vector:
|
|
|
3847
3703
|
:return: The dot product.
|
|
3848
3704
|
:rtype: float
|
|
3849
3705
|
"""
|
|
3850
|
-
...
|
|
3851
3706
|
|
|
3852
3707
|
def freeze(self) -> typing_extensions.Self:
|
|
3853
3708
|
"""Make this object immutable.After this the object can be hashed, used in dictionaries & sets.
|
|
@@ -3855,7 +3710,6 @@ class Vector:
|
|
|
3855
3710
|
:return: An instance of this object.
|
|
3856
3711
|
:rtype: typing_extensions.Self
|
|
3857
3712
|
"""
|
|
3858
|
-
...
|
|
3859
3713
|
|
|
3860
3714
|
def lerp(
|
|
3861
3715
|
self,
|
|
@@ -3871,15 +3725,12 @@ class Vector:
|
|
|
3871
3725
|
:return: The interpolated vector.
|
|
3872
3726
|
:rtype: typing_extensions.Self
|
|
3873
3727
|
"""
|
|
3874
|
-
...
|
|
3875
3728
|
|
|
3876
3729
|
def negate(self):
|
|
3877
3730
|
"""Set all values to their negative."""
|
|
3878
|
-
...
|
|
3879
3731
|
|
|
3880
3732
|
def normalize(self):
|
|
3881
3733
|
"""Normalize the vector, making the length of the vector always 1.0."""
|
|
3882
|
-
...
|
|
3883
3734
|
|
|
3884
3735
|
def normalized(self) -> typing_extensions.Self:
|
|
3885
3736
|
"""Return a new, normalized vector.
|
|
@@ -3887,7 +3738,6 @@ class Vector:
|
|
|
3887
3738
|
:return: a normalized copy of the vector
|
|
3888
3739
|
:rtype: typing_extensions.Self
|
|
3889
3740
|
"""
|
|
3890
|
-
...
|
|
3891
3741
|
|
|
3892
3742
|
def orthogonal(self) -> typing_extensions.Self:
|
|
3893
3743
|
"""Return a perpendicular vector.
|
|
@@ -3895,7 +3745,6 @@ class Vector:
|
|
|
3895
3745
|
:return: a new vector 90 degrees from this vector.
|
|
3896
3746
|
:rtype: typing_extensions.Self
|
|
3897
3747
|
"""
|
|
3898
|
-
...
|
|
3899
3748
|
|
|
3900
3749
|
def project(
|
|
3901
3750
|
self, other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -3907,7 +3756,6 @@ class Vector:
|
|
|
3907
3756
|
:return: the parallel projection vector
|
|
3908
3757
|
:rtype: typing_extensions.Self
|
|
3909
3758
|
"""
|
|
3910
|
-
...
|
|
3911
3759
|
|
|
3912
3760
|
def reflect(
|
|
3913
3761
|
self, mirror: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -3919,26 +3767,21 @@ class Vector:
|
|
|
3919
3767
|
:return: The reflected vector matching the size of this vector.
|
|
3920
3768
|
:rtype: typing_extensions.Self
|
|
3921
3769
|
"""
|
|
3922
|
-
...
|
|
3923
3770
|
|
|
3924
3771
|
def resize(self, size=3):
|
|
3925
3772
|
"""Resize the vector to have size number of elements.
|
|
3926
3773
|
|
|
3927
3774
|
:param size:
|
|
3928
3775
|
"""
|
|
3929
|
-
...
|
|
3930
3776
|
|
|
3931
3777
|
def resize_2d(self):
|
|
3932
3778
|
"""Resize the vector to 2D (x, y)."""
|
|
3933
|
-
...
|
|
3934
3779
|
|
|
3935
3780
|
def resize_3d(self):
|
|
3936
3781
|
"""Resize the vector to 3D (x, y, z)."""
|
|
3937
|
-
...
|
|
3938
3782
|
|
|
3939
3783
|
def resize_4d(self):
|
|
3940
3784
|
"""Resize the vector to 4D (x, y, z, w)."""
|
|
3941
|
-
...
|
|
3942
3785
|
|
|
3943
3786
|
def resized(self, size=3) -> typing_extensions.Self:
|
|
3944
3787
|
"""Return a resized copy of the vector with size number of elements.
|
|
@@ -3947,7 +3790,6 @@ class Vector:
|
|
|
3947
3790
|
:return: a new vector
|
|
3948
3791
|
:rtype: typing_extensions.Self
|
|
3949
3792
|
"""
|
|
3950
|
-
...
|
|
3951
3793
|
|
|
3952
3794
|
def rotate(
|
|
3953
3795
|
self,
|
|
@@ -3962,7 +3804,6 @@ class Vector:
|
|
|
3962
3804
|
:param other: rotation component of mathutils value
|
|
3963
3805
|
:type other: Euler | Matrix | Quaternion | collections.abc.Sequence[collections.abc.Sequence[float]] | collections.abc.Sequence[float]
|
|
3964
3806
|
"""
|
|
3965
|
-
...
|
|
3966
3807
|
|
|
3967
3808
|
def rotation_difference(
|
|
3968
3809
|
self, other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -3975,7 +3816,6 @@ class Vector:
|
|
|
3975
3816
|
:return: the rotational difference between the two vectors.
|
|
3976
3817
|
:rtype: Quaternion
|
|
3977
3818
|
"""
|
|
3978
|
-
...
|
|
3979
3819
|
|
|
3980
3820
|
def slerp(
|
|
3981
3821
|
self,
|
|
@@ -3995,7 +3835,6 @@ class Vector:
|
|
|
3995
3835
|
:return: The interpolated vector.
|
|
3996
3836
|
:rtype: typing_extensions.Self
|
|
3997
3837
|
"""
|
|
3998
|
-
...
|
|
3999
3838
|
|
|
4000
3839
|
def to_2d(self) -> typing_extensions.Self:
|
|
4001
3840
|
"""Return a 2d copy of the vector.
|
|
@@ -4003,7 +3842,6 @@ class Vector:
|
|
|
4003
3842
|
:return: a new vector
|
|
4004
3843
|
:rtype: typing_extensions.Self
|
|
4005
3844
|
"""
|
|
4006
|
-
...
|
|
4007
3845
|
|
|
4008
3846
|
def to_3d(self) -> typing_extensions.Self:
|
|
4009
3847
|
"""Return a 3d copy of the vector.
|
|
@@ -4011,7 +3849,6 @@ class Vector:
|
|
|
4011
3849
|
:return: a new vector
|
|
4012
3850
|
:rtype: typing_extensions.Self
|
|
4013
3851
|
"""
|
|
4014
|
-
...
|
|
4015
3852
|
|
|
4016
3853
|
def to_4d(self) -> typing_extensions.Self:
|
|
4017
3854
|
"""Return a 4d copy of the vector.
|
|
@@ -4019,7 +3856,6 @@ class Vector:
|
|
|
4019
3856
|
:return: a new vector
|
|
4020
3857
|
:rtype: typing_extensions.Self
|
|
4021
3858
|
"""
|
|
4022
|
-
...
|
|
4023
3859
|
|
|
4024
3860
|
def to_track_quat(self, track: str, up: str) -> Quaternion:
|
|
4025
3861
|
"""Return a quaternion rotation from the vector and the track and up axis.
|
|
@@ -4031,7 +3867,6 @@ class Vector:
|
|
|
4031
3867
|
:return: rotation from the vector and the track and up axis.
|
|
4032
3868
|
:rtype: Quaternion
|
|
4033
3869
|
"""
|
|
4034
|
-
...
|
|
4035
3870
|
|
|
4036
3871
|
def to_tuple(self, precision: int = -1) -> tuple:
|
|
4037
3872
|
"""Return this vector as a tuple with.
|
|
@@ -4041,18 +3876,15 @@ class Vector:
|
|
|
4041
3876
|
:return: the values of the vector rounded by precision
|
|
4042
3877
|
:rtype: tuple
|
|
4043
3878
|
"""
|
|
4044
|
-
...
|
|
4045
3879
|
|
|
4046
3880
|
def zero(self):
|
|
4047
3881
|
"""Set all values to zero."""
|
|
4048
|
-
...
|
|
4049
3882
|
|
|
4050
3883
|
def __init__(self, seq=(0.0, 0.0, 0.0)):
|
|
4051
3884
|
"""
|
|
4052
3885
|
|
|
4053
3886
|
:param seq:
|
|
4054
3887
|
"""
|
|
4055
|
-
...
|
|
4056
3888
|
|
|
4057
3889
|
def __get__(self, instance, owner) -> typing_extensions.Self:
|
|
4058
3890
|
"""
|
|
@@ -4062,7 +3894,6 @@ class Vector:
|
|
|
4062
3894
|
:return:
|
|
4063
3895
|
:rtype: typing_extensions.Self
|
|
4064
3896
|
"""
|
|
4065
|
-
...
|
|
4066
3897
|
|
|
4067
3898
|
def __set__(
|
|
4068
3899
|
self, instance, value: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -4073,7 +3904,6 @@ class Vector:
|
|
|
4073
3904
|
:param value:
|
|
4074
3905
|
:type value: collections.abc.Sequence[float] | typing_extensions.Self
|
|
4075
3906
|
"""
|
|
4076
|
-
...
|
|
4077
3907
|
|
|
4078
3908
|
def __len__(self) -> int:
|
|
4079
3909
|
"""
|
|
@@ -4081,7 +3911,6 @@ class Vector:
|
|
|
4081
3911
|
:return:
|
|
4082
3912
|
:rtype: int
|
|
4083
3913
|
"""
|
|
4084
|
-
...
|
|
4085
3914
|
|
|
4086
3915
|
@typing.overload
|
|
4087
3916
|
def __getitem__(self, key: int) -> float:
|
|
@@ -4092,7 +3921,6 @@ class Vector:
|
|
|
4092
3921
|
:return:
|
|
4093
3922
|
:rtype: float
|
|
4094
3923
|
"""
|
|
4095
|
-
...
|
|
4096
3924
|
|
|
4097
3925
|
@typing.overload
|
|
4098
3926
|
def __getitem__(self, key: slice) -> tuple[float, ...]:
|
|
@@ -4103,7 +3931,6 @@ class Vector:
|
|
|
4103
3931
|
:return:
|
|
4104
3932
|
:rtype: tuple[float, ...]
|
|
4105
3933
|
"""
|
|
4106
|
-
...
|
|
4107
3934
|
|
|
4108
3935
|
@typing.overload
|
|
4109
3936
|
def __setitem__(self, key: int, value: float):
|
|
@@ -4114,7 +3941,6 @@ class Vector:
|
|
|
4114
3941
|
:param value:
|
|
4115
3942
|
:type value: float
|
|
4116
3943
|
"""
|
|
4117
|
-
...
|
|
4118
3944
|
|
|
4119
3945
|
@typing.overload
|
|
4120
3946
|
def __setitem__(self, key: slice, value: collections.abc.Iterable[float]):
|
|
@@ -4125,7 +3951,6 @@ class Vector:
|
|
|
4125
3951
|
:param value:
|
|
4126
3952
|
:type value: collections.abc.Iterable[float]
|
|
4127
3953
|
"""
|
|
4128
|
-
...
|
|
4129
3954
|
|
|
4130
3955
|
def __neg__(self) -> typing_extensions.Self:
|
|
4131
3956
|
"""
|
|
@@ -4133,7 +3958,6 @@ class Vector:
|
|
|
4133
3958
|
:return:
|
|
4134
3959
|
:rtype: typing_extensions.Self
|
|
4135
3960
|
"""
|
|
4136
|
-
...
|
|
4137
3961
|
|
|
4138
3962
|
def __add__(
|
|
4139
3963
|
self, other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -4145,7 +3969,6 @@ class Vector:
|
|
|
4145
3969
|
:return:
|
|
4146
3970
|
:rtype: typing_extensions.Self
|
|
4147
3971
|
"""
|
|
4148
|
-
...
|
|
4149
3972
|
|
|
4150
3973
|
def __sub__(
|
|
4151
3974
|
self, other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -4157,27 +3980,24 @@ class Vector:
|
|
|
4157
3980
|
:return:
|
|
4158
3981
|
:rtype: typing_extensions.Self
|
|
4159
3982
|
"""
|
|
4160
|
-
...
|
|
4161
3983
|
|
|
4162
|
-
def __mul__(self, other: float
|
|
3984
|
+
def __mul__(self, other: float) -> typing_extensions.Self:
|
|
4163
3985
|
"""
|
|
4164
3986
|
|
|
4165
3987
|
:param other:
|
|
4166
|
-
:type other: float
|
|
3988
|
+
:type other: float
|
|
4167
3989
|
:return:
|
|
4168
3990
|
:rtype: typing_extensions.Self
|
|
4169
3991
|
"""
|
|
4170
|
-
...
|
|
4171
3992
|
|
|
4172
|
-
def __truediv__(self, other: float
|
|
3993
|
+
def __truediv__(self, other: float) -> typing_extensions.Self:
|
|
4173
3994
|
"""
|
|
4174
3995
|
|
|
4175
3996
|
:param other:
|
|
4176
|
-
:type other: float
|
|
3997
|
+
:type other: float
|
|
4177
3998
|
:return:
|
|
4178
3999
|
:rtype: typing_extensions.Self
|
|
4179
4000
|
"""
|
|
4180
|
-
...
|
|
4181
4001
|
|
|
4182
4002
|
@typing.overload
|
|
4183
4003
|
def __matmul__(
|
|
@@ -4190,7 +4010,6 @@ class Vector:
|
|
|
4190
4010
|
:return:
|
|
4191
4011
|
:rtype: float
|
|
4192
4012
|
"""
|
|
4193
|
-
...
|
|
4194
4013
|
|
|
4195
4014
|
@typing.overload
|
|
4196
4015
|
def __matmul__(
|
|
@@ -4203,7 +4022,6 @@ class Vector:
|
|
|
4203
4022
|
:return:
|
|
4204
4023
|
:rtype: typing_extensions.Self
|
|
4205
4024
|
"""
|
|
4206
|
-
...
|
|
4207
4025
|
|
|
4208
4026
|
def __radd__(
|
|
4209
4027
|
self, other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -4215,7 +4033,6 @@ class Vector:
|
|
|
4215
4033
|
:return:
|
|
4216
4034
|
:rtype: typing_extensions.Self
|
|
4217
4035
|
"""
|
|
4218
|
-
...
|
|
4219
4036
|
|
|
4220
4037
|
def __rsub__(
|
|
4221
4038
|
self, other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -4227,27 +4044,24 @@ class Vector:
|
|
|
4227
4044
|
:return:
|
|
4228
4045
|
:rtype: typing_extensions.Self
|
|
4229
4046
|
"""
|
|
4230
|
-
...
|
|
4231
4047
|
|
|
4232
|
-
def __rmul__(self, other: float
|
|
4048
|
+
def __rmul__(self, other: float) -> typing_extensions.Self:
|
|
4233
4049
|
"""
|
|
4234
4050
|
|
|
4235
4051
|
:param other:
|
|
4236
|
-
:type other: float
|
|
4052
|
+
:type other: float
|
|
4237
4053
|
:return:
|
|
4238
4054
|
:rtype: typing_extensions.Self
|
|
4239
4055
|
"""
|
|
4240
|
-
...
|
|
4241
4056
|
|
|
4242
|
-
def __rtruediv__(self, other: float
|
|
4057
|
+
def __rtruediv__(self, other: float) -> typing_extensions.Self:
|
|
4243
4058
|
"""
|
|
4244
4059
|
|
|
4245
4060
|
:param other:
|
|
4246
|
-
:type other: float
|
|
4061
|
+
:type other: float
|
|
4247
4062
|
:return:
|
|
4248
4063
|
:rtype: typing_extensions.Self
|
|
4249
4064
|
"""
|
|
4250
|
-
...
|
|
4251
4065
|
|
|
4252
4066
|
def __iadd__(
|
|
4253
4067
|
self, other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -4259,7 +4073,6 @@ class Vector:
|
|
|
4259
4073
|
:return:
|
|
4260
4074
|
:rtype: typing_extensions.Self
|
|
4261
4075
|
"""
|
|
4262
|
-
...
|
|
4263
4076
|
|
|
4264
4077
|
def __isub__(
|
|
4265
4078
|
self, other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
@@ -4271,24 +4084,21 @@ class Vector:
|
|
|
4271
4084
|
:return:
|
|
4272
4085
|
:rtype: typing_extensions.Self
|
|
4273
4086
|
"""
|
|
4274
|
-
...
|
|
4275
4087
|
|
|
4276
|
-
def __imul__(self, other: float
|
|
4088
|
+
def __imul__(self, other: float) -> typing_extensions.Self:
|
|
4277
4089
|
"""
|
|
4278
4090
|
|
|
4279
4091
|
:param other:
|
|
4280
|
-
:type other: float
|
|
4092
|
+
:type other: float
|
|
4281
4093
|
:return:
|
|
4282
4094
|
:rtype: typing_extensions.Self
|
|
4283
4095
|
"""
|
|
4284
|
-
...
|
|
4285
4096
|
|
|
4286
|
-
def __itruediv__(self, other: float
|
|
4097
|
+
def __itruediv__(self, other: float) -> typing_extensions.Self:
|
|
4287
4098
|
"""
|
|
4288
4099
|
|
|
4289
4100
|
:param other:
|
|
4290
|
-
:type other: float
|
|
4101
|
+
:type other: float
|
|
4291
4102
|
:return:
|
|
4292
4103
|
:rtype: typing_extensions.Self
|
|
4293
4104
|
"""
|
|
4294
|
-
...
|