Blender  V3.3
Classes | Macros | Functions | Variables
mathutils_Vector.h File Reference

Go to the source code of this file.

Classes

struct  VectorObject
 

Macros

#define VectorObject_Check(v)   PyObject_TypeCheck((v), &vector_Type)
 
#define VectorObject_CheckExact(v)   (Py_TYPE(v) == &vector_Type)
 

Functions

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

Variables

PyTypeObject vector_Type
 

Macro Definition Documentation

◆ VectorObject_Check

#define VectorObject_Check (   v)    PyObject_TypeCheck((v), &vector_Type)

Definition at line 11 of file mathutils_Vector.h.

◆ VectorObject_CheckExact

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

Definition at line 12 of file mathutils_Vector.h.

Function Documentation

◆ Vector_CreatePyObject()

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

Definition at line 3284 of file mathutils_Vector.c.

References BASE_MATH_FLAG_DEFAULT, BASE_MATH_NEW, copy_vn_fl(), NULL, 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_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_tri(), M_Geometry_intersect_ray_tri(), M_Geometry_intersect_sphere_sphere_2d(), M_Geometry_normal(), 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 
)

◆ Vector_CreatePyObject_cb()

PyObject* Vector_CreatePyObject_cb ( PyObject *  user,
int  vec_num,
unsigned char  cb_type,
unsigned char  subtype 
)

◆ Vector_CreatePyObject_wrap()

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

Variable Documentation

◆ vector_Type

PyTypeObject vector_Type
extern