Blender V5.0
mathutils_Vector.hh File Reference
#include <Python.h>
#include "mathutils.hh"

Go to the source code of this file.

Classes

struct  VectorObject

Macros

#define VectorObject_Check(v)
#define VectorObject_CheckExact(v)

Functions

PyObject * Vector_CreatePyObject (const float *vec, int vec_num, PyTypeObject *base_type)
PyObject * Vector_CreatePyObject_wrap (float *vec, int vec_num, PyTypeObject *base_type) ATTR_NONNULL(1)
PyObject * Vector_CreatePyObject_cb (PyObject *cb_user, int vec_num, unsigned char cb_type, unsigned char cb_subtype)
PyObject * Vector_CreatePyObject_alloc (float *vec, int vec_num, PyTypeObject *base_type) ATTR_NONNULL(1)

Variables

PyTypeObject vector_Type

Macro Definition Documentation

◆ VectorObject_Check

◆ VectorObject_CheckExact

#define VectorObject_CheckExact ( v)
Value:
(Py_TYPE(v) == &vector_Type)

Definition at line 18 of file mathutils_Vector.hh.

Function Documentation

◆ Vector_CreatePyObject()

PyObject * Vector_CreatePyObject ( const float * vec,
int vec_num,
PyTypeObject * base_type )
nodiscard

Definition at line 3567 of file mathutils_Vector.cc.

References BASE_MATH_FLAG_DEFAULT, BASE_MATH_NEW, copy_vn_fl(), self, UNLIKELY, and vector_Type.

Referenced by bpy_bmedge_calc_tangent(), bpy_bmface_calc_center_bounds(), bpy_bmface_calc_center_mean(), bpy_bmface_calc_center_median_weighted(), bpy_bmface_calc_tangent_edge(), bpy_bmface_calc_tangent_edge_diagonal(), bpy_bmface_calc_tangent_edge_pair(), bpy_bmface_calc_tangent_vert_diagonal(), bpy_bmloop_calc_normal(), bpy_bmloop_calc_tangent(), bpy_slot_to_py(), Freestyle_blendRamp(), Freestyle_evaluateColorRamp(), kdtree_nearest_to_py_tuple(), M_Geometry_barycentric_transform(), M_Geometry_closest_point_on_tri(), M_Geometry_delaunay_2d_cdt(), M_Geometry_interpolate_bezier(), M_Geometry_intersect_line_line(), M_Geometry_intersect_line_line_2d(), M_Geometry_intersect_line_plane(), M_Geometry_intersect_line_sphere(), M_Geometry_intersect_line_sphere_2d(), M_Geometry_intersect_plane_plane(), M_Geometry_intersect_point_line(), M_Geometry_intersect_point_line_segment(), M_Geometry_intersect_point_tri(), M_Geometry_intersect_ray_tri(), M_Geometry_intersect_sphere_sphere_2d(), M_Geometry_normal(), M_Noise_cell_vector(), M_Noise_noise_vector(), M_Noise_random_unit_vector(), M_Noise_turbulence_vector(), M_Noise_voronoi(), Matrix_decompose(), Matrix_matmul(), Matrix_to_scale(), Matrix_to_translation(), points_in_planes_fn(), py_bvhtree_nearest_to_py_tuple(), py_bvhtree_raycast_to_py_tuple(), pyrna_math_object_from_array(), pyrna_param_to_py(), Quaternion_axis_vector_get(), Quaternion_matmul(), Quaternion_to_axis_angle(), Quaternion_to_exponential_map(), Vector_copy(), Vector_CreatePyObject_cb(), Vector_cross(), Vector_from_Vec2f(), Vector_from_Vec3f(), Vector_from_Vec3r(), Vector_matmul(), Vector_orthogonal(), Vector_reflect(), Vector_slerp(), Vector_swizzle_get(), Vector_to_2d(), Vector_to_3d(), and Vector_to_4d().

◆ Vector_CreatePyObject_alloc()

PyObject * Vector_CreatePyObject_alloc ( float * vec,
int vec_num,
PyTypeObject * base_type )
nodiscard

◆ Vector_CreatePyObject_cb()

◆ Vector_CreatePyObject_wrap()

PyObject * Vector_CreatePyObject_wrap ( float * vec,
int vec_num,
PyTypeObject * base_type )
nodiscard

Variable Documentation

◆ vector_Type

PyTypeObject vector_Type
extern