Blender V5.3
blender::MatBase< T, NumCol, NumRow, Alignment > Struct Template Reference

#include <BLI_math_matrix_types.hh>

Inherits blender::blender::vec_struct_base< VecBase< T, NumRow >, NumCol, false >.

Public Types

using base_type = T
using vec3_type = VecBase<T, 3>
using col_type = VecBase<T, NumRow>
using row_type = VecBase<T, NumCol>
using loc_type = VecBase<T, (NumRow < NumCol) ? NumRow : (NumRow - 1)>
using c_style_mat = T[NumCol][NumRow]

Public Member Functions

 MatBase ()=default
 MatBase (col_type _x, col_type _y)
 MatBase (col_type _x, col_type _y, col_type _z)
 MatBase (col_type _x, col_type _y, col_type _z, col_type _w)
template<typename U, int OtherNumCol, int OtherNumRow>
 MatBase (const MatBase< U, OtherNumCol, OtherNumRow > &other)
 MatBase (const T *ptr)
template<typename U>
requires (std::is_convertible_v<U, T>)
 MatBase (const U *ptr)
 MatBase (const T(*ptr)[NumCol])
template<typename U>
 MatBase (const MatBase< U, NumRow, NumCol > &vec)
const c_style_mat & ptr () const
c_style_mat & ptr ()
const T * base_ptr () const
T * base_ptr ()
template<int ViewNumCol = NumCol, int ViewNumRow = NumRow, int SrcStartCol = 0, int SrcStartRow = 0>
const MatView< T, ViewNumCol, ViewNumRow, NumCol, NumRow, SrcStartCol, SrcStartRow, Alignment > view () const
template<int ViewNumCol = NumCol, int ViewNumRow = NumRow, int SrcStartCol = 0, int SrcStartRow = 0>
MutableMatView< T, ViewNumCol, ViewNumRow, NumCol, NumRow, SrcStartCol, SrcStartRow, Alignment > view ()
const col_type & operator[] (int index) const
col_type & operator[] (int index)
vec3_type & x_axis ()
vec3_type & y_axis ()
vec3_type & z_axis ()
loc_type & location ()
const vec3_type & x_axis () const
const vec3_type & y_axis () const
const vec3_type & z_axis () const
const loc_type & location () const
MatBase & operator+= (const MatBase &b) &
MatBase & operator+= (T b) &
MatBase & operator-= (const MatBase &b) &
MatBase & operator-= (T b) &
MatBase & operator*= (const MatBase &b) &
MatBase & operator*= (T b) &
uint64_t hash () const
void hash_unique (UniqueHashBytes &hash) const

Static Public Member Functions

static MatBase diagonal (T value)
static MatBase all (T value)
static MatBase identity ()
static MatBase zero ()

Static Public Attributes

static constexpr int min_dim = (NumRow < NumCol) ? NumRow : NumCol
static constexpr int col_len = NumCol
static constexpr int row_len = NumRow

Friends

MatBase operator+ (const MatBase &a, const MatBase &b)
MatBase operator+ (const MatBase &a, T b)
MatBase operator+ (T a, const MatBase &b)
MatBase operator- (const MatBase &a)
MatBase operator- (const MatBase &a, const MatBase &b)
MatBase operator- (const MatBase &a, T b)
MatBase operator- (T a, const MatBase &b)
MatBase operator* (const MatBase &a, T b)
MatBase operator* (T a, const MatBase &b)
col_type operator* (const MatBase &a, const row_type &b)
row_type operator* (const col_type &a, const MatBase &b)
bool operator== (const MatBase &a, const MatBase &b)
bool operator!= (const MatBase &a, const MatBase &b)
std::ostream & operator<< (std::ostream &stream, const MatBase &mat)

Additional Inherited Members

Public Attributes inherited from blender::blender::vec_struct_base< VecBase< T, NumRow >, NumCol, false >
std::array< T, Size > values

Detailed Description

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
struct blender::MatBase< T, NumCol, NumRow, Alignment >

Definition at line 75 of file BLI_math_matrix_types.hh.

Member Typedef Documentation

◆ base_type

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
using blender::MatBase< T, NumCol, NumRow, Alignment >::base_type = T

Definition at line 77 of file BLI_math_matrix_types.hh.

◆ c_style_mat

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
using blender::MatBase< T, NumCol, NumRow, Alignment >::c_style_mat = T[NumCol][NumRow]

C-style pointer dereference.

Definition at line 168 of file BLI_math_matrix_types.hh.

◆ col_type

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
using blender::MatBase< T, NumCol, NumRow, Alignment >::col_type = VecBase<T, NumRow>

Definition at line 79 of file BLI_math_matrix_types.hh.

◆ loc_type

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
using blender::MatBase< T, NumCol, NumRow, Alignment >::loc_type = VecBase<T, (NumRow < NumCol) ? NumRow : (NumRow - 1)>

Definition at line 81 of file BLI_math_matrix_types.hh.

◆ row_type

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
using blender::MatBase< T, NumCol, NumRow, Alignment >::row_type = VecBase<T, NumCol>

Definition at line 80 of file BLI_math_matrix_types.hh.

◆ vec3_type

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
using blender::MatBase< T, NumCol, NumRow, Alignment >::vec3_type = VecBase<T, 3>

Definition at line 78 of file BLI_math_matrix_types.hh.

Constructor & Destructor Documentation

◆ MatBase() [1/9]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
blender::MatBase< T, NumCol, NumRow, Alignment >::MatBase ( )
default

Construct a matrix with uninitialized values.

To zero-initialize the matrix, use MatBase<T, NumCol, NumRow> matrix = {}.

Referenced by blender::math::from_direction().

◆ MatBase() [2/9]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
blender::MatBase< T, NumCol, NumRow, Alignment >::MatBase ( col_type _x,
col_type _y )
inline

Definition at line 93 of file BLI_math_matrix_types.hh.

◆ MatBase() [3/9]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
blender::MatBase< T, NumCol, NumRow, Alignment >::MatBase ( col_type _x,
col_type _y,
col_type _z )
inline

Definition at line 100 of file BLI_math_matrix_types.hh.

◆ MatBase() [4/9]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
blender::MatBase< T, NumCol, NumRow, Alignment >::MatBase ( col_type _x,
col_type _y,
col_type _z,
col_type _w )
inline

Definition at line 108 of file BLI_math_matrix_types.hh.

◆ MatBase() [5/9]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
template<typename U, int OtherNumCol, int OtherNumRow>
blender::MatBase< T, NumCol, NumRow, Alignment >::MatBase ( const MatBase< U, OtherNumCol, OtherNumRow > & other)
inlineexplicit

Masking.

Definition at line 120 of file BLI_math_matrix_types.hh.

◆ MatBase() [6/9]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
blender::MatBase< T, NumCol, NumRow, Alignment >::MatBase ( const T * ptr)
inlineexplicit

Conversion from pointers (from C-style vectors).

Definition at line 145 of file BLI_math_matrix_types.hh.

◆ MatBase() [7/9]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
template<typename U>
requires (std::is_convertible_v<U, T>)
blender::MatBase< T, NumCol, NumRow, Alignment >::MatBase ( const U * ptr)
inlineexplicit

Definition at line 151 of file BLI_math_matrix_types.hh.

◆ MatBase() [8/9]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
blender::MatBase< T, NumCol, NumRow, Alignment >::MatBase ( const T(*) ptr[NumCol])
inlineexplicit

Definition at line 157 of file BLI_math_matrix_types.hh.

◆ MatBase() [9/9]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
template<typename U>
blender::MatBase< T, NumCol, NumRow, Alignment >::MatBase ( const MatBase< U, NumRow, NumCol > & vec)
inlineexplicit

Conversion from other matrix types.

Definition at line 161 of file BLI_math_matrix_types.hh.

Member Function Documentation

◆ all()

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
MatBase blender::MatBase< T, NumCol, NumRow, Alignment >::all ( T value)
inlinestatic

Definition at line 447 of file BLI_math_matrix_types.hh.

◆ base_ptr() [1/2]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
T * blender::MatBase< T, NumCol, NumRow, Alignment >::base_ptr ( )
inline
Note
Prevent implicit cast to types that could fit other pointer constructor.

Definition at line 189 of file BLI_math_matrix_types.hh.

◆ base_ptr() [2/2]

◆ diagonal()

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
MatBase blender::MatBase< T, NumCol, NumRow, Alignment >::diagonal ( T value)
inlinestatic

Miscellaneous.

Definition at line 440 of file BLI_math_matrix_types.hh.

◆ hash()

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
uint64_t blender::MatBase< T, NumCol, NumRow, Alignment >::hash ( ) const
inline

Definition at line 464 of file BLI_math_matrix_types.hh.

◆ hash_unique()

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
void blender::MatBase< T, NumCol, NumRow, Alignment >::hash_unique ( UniqueHashBytes & hash) const
inline

Definition at line 474 of file BLI_math_matrix_types.hh.

◆ identity()

◆ location() [1/2]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
loc_type & blender::MatBase< T, NumCol, NumRow, Alignment >::location ( )
inline

Definition at line 263 of file BLI_math_matrix_types.hh.

Referenced by blender::draw::overlay::Cursor::begin_sync(), blender::draw::overlay::Instance::begin_sync(), blender::bone_draw_wire(), blender::bke::build_point_matrix(), blender::ed::sculpt_paint::calc_brush_plane(), blender::ed::sculpt_paint::brushes::clay_strips::calc_local_matrix(), blender::ed::sculpt_paint::cloth::cloth_brush_apply_brush_forces(), blender::nodes::node_composite_corner_pin_cc::CornerPinOperation::compute_domain(), blender::nodes::node_composite_file_output_cc::FileOutputOperation::compute_domain(), blender::ed::sculpt_paint::brushes::do_clay_thumb_brush(), blender::ed::sculpt_paint::brushes::do_multiplane_scrape_brush(), blender::ed::sculpt_paint::brushes::do_pinch_brush(), blender::ed::sculpt_paint::brushes::do_plane_brush(), blender::drw_shgroup_bone_stick(), blender::draw::drw_volume_object_mesh_init(), blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::get_axis_gizmo_matrix_basis(), blender::imbuf::transform::TransformContext::init(), blender::ed::view3d::geometry_nodes_gizmos::matrix_from_position_and_up_direction(), blender::bke::attribute_math::mix3(), blender::bke::attribute_math::mix4(), blender::ed::transform::nla_transform_apply(), blender::draw::overlay::Bounds::object_sync(), blender::draw::overlay::ForceFields::object_sync(), blender::draw::overlay::GreasePencil::object_sync(), blender::draw::overlay::LightProbes::object_sync(), blender::draw::overlay::Lights::object_sync(), blender::workbench::VolumePass::object_sync_modifier(), blender::workbench::VolumePass::object_sync_volume(), blender::ed::object::object_transform_axis_target_modal(), blender::compositor::Domain::realize_transformation(), blender::eevee::PlanarProbe::reflection_clip_plane_get(), blender::nodes::node_geo_rotate_instances_cc::rotate_instances(), blender::eevee::PlanarProbe::set_view(), blender::eevee::VolumeProbeModule::set_view(), blender::compositor::StringImage::StringImage(), blender::eevee::LookdevModule::sync(), blender::eevee::ShadowTileMap::sync_cubeface(), blender::math::tests::TEST(), blender::math::to_loc_rot_scale(), blender::math::to_loc_rot_scale(), blender::math::transform_point(), blender::math::transform_point(), blender::nodes::gizmos::translate_gizmo_input_offset(), blender::geometry::translate_greasepencil(), blender::ed::curves::convert_to_particle_system::try_convert_single_object(), blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::update(), blender::ed::transform::EdgeSlideData::update_proj_mat(), blender::ed::transform::VertSlideData::update_proj_mat(), blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::update_translate_transform_and_target_property(), blender::WIDGETGROUP_camera_refresh(), blender::WIDGETGROUP_light_point_draw_prepare(), blender::WIDGETGROUP_light_spot_draw_prepare(), blender::WIDGETGROUP_light_spot_refresh(), and blender::render::Context::write_viewer_image().

◆ location() [2/2]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
const loc_type & blender::MatBase< T, NumCol, NumRow, Alignment >::location ( ) const
inline

Definition at line 291 of file BLI_math_matrix_types.hh.

◆ operator*=() [1/2]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
MatBase & blender::MatBase< T, NumCol, NumRow, Alignment >::operator*= ( const MatBase< T, NumCol, NumRow, Alignment > & b) &
inline

Multiply two matrices using matrix multiplication.

Definition at line 386 of file BLI_math_matrix_types.hh.

◆ operator*=() [2/2]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
MatBase & blender::MatBase< T, NumCol, NumRow, Alignment >::operator*= ( T b) &
inline

Multiply each component by a scalar.

Definition at line 394 of file BLI_math_matrix_types.hh.

◆ operator+=() [1/2]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
MatBase & blender::MatBase< T, NumCol, NumRow, Alignment >::operator+= ( const MatBase< T, NumCol, NumRow, Alignment > & b) &
inline

Definition at line 319 of file BLI_math_matrix_types.hh.

◆ operator+=() [2/2]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
MatBase & blender::MatBase< T, NumCol, NumRow, Alignment >::operator+= ( T b) &
inline

Definition at line 325 of file BLI_math_matrix_types.hh.

◆ operator-=() [1/2]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
MatBase & blender::MatBase< T, NumCol, NumRow, Alignment >::operator-= ( const MatBase< T, NumCol, NumRow, Alignment > & b) &
inline

Definition at line 359 of file BLI_math_matrix_types.hh.

◆ operator-=() [2/2]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
MatBase & blender::MatBase< T, NumCol, NumRow, Alignment >::operator-= ( T b) &
inline

Definition at line 365 of file BLI_math_matrix_types.hh.

◆ operator[]() [1/2]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
col_type & blender::MatBase< T, NumCol, NumRow, Alignment >::operator[] ( int index)
inline

Definition at line 233 of file BLI_math_matrix_types.hh.

◆ operator[]() [2/2]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
const col_type & blender::MatBase< T, NumCol, NumRow, Alignment >::operator[] ( int index) const
inline

Array access.

Definition at line 226 of file BLI_math_matrix_types.hh.

◆ ptr() [1/2]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
c_style_mat & blender::MatBase< T, NumCol, NumRow, Alignment >::ptr ( )
inline
Note
Prevent implicit cast to types that could fit other pointer constructor.

Definition at line 177 of file BLI_math_matrix_types.hh.

◆ ptr() [2/2]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
const c_style_mat & blender::MatBase< T, NumCol, NumRow, Alignment >::ptr ( ) const
inline
Note
Prevent implicit cast to types that could fit other pointer constructor.

Definition at line 171 of file BLI_math_matrix_types.hh.

Referenced by blender::DRWContext::acquire_data(), blender::ed::greasepencil::add_armature_envelope_weights(), blender::ed::object::add_generic_get_opts(), blender::ed::object::add_hook_object(), blender::nodes::node_geo_instance_on_points_cc::add_instances_from_component(), blender::add_primitive_cube_gizmo_exec(), blender::ed::sculpt_paint::apply_brush_texture(), blender::armature_bone_primitive_add_exec(), blender::armature_fill_bones_exec(), blender::BKE_constraints_clear_evalob(), blender::BKE_grease_pencil_point_coords_apply_with_mat4(), blender::BKE_lattice_resize(), blender::BKE_object_calc_parent(), blender::BKE_object_eval_local_transform(), blender::BKE_object_eval_parent(), blender::BKE_object_eval_transform_final(), blender::BKE_object_modifier_gpencil_hook_reset(), blender::BKE_object_modifier_hook_reset(), blender::BKE_object_sync_to_original(), blender::BKE_object_tfm_restore(), blender::BKE_pchan_minmax(), blender::BKE_pose_where_is(), blender::BKE_scene_base_iter_next(), blender::brush_edit_apply(), blender::ed::sculpt_paint::cache_calc_brushdata_symm(), blender::ed::sculpt_paint::filter::cache_init(), blender::ed::sculpt_paint::calc_brush_node_mask(), blender::geometry::ngon::calc_corner_tris(), blender::ed::transform::calc_gizmo_stats(), blender::ed::sculpt_paint::calc_motion_normal_from_angle(), blender::ed::transform::calc_orientation_from_type_ex(), blender::ed::sculpt_paint::calc_vertex_displacement(), blender::nodes::node_fn_matrix_svd_cc::MatrixSVDFunction::call(), blender::ed::sculpt_paint::cloth::cloth_brush_apply_brush_forces(), blender::cloth_to_object(), blender::nodes::node_geo_bone_info_cc::compute_bone_info(), blender::nodes::node_composite_plane_track_deform_cc::PlaneTrackDeformOperation::compute_homography_matrices(), blender::nodes::node_composite_corner_pin_cc::CornerPinOperation::compute_homography_matrix(), blender::nodes::node_composite_corner_pin_cc::CornerPinOperation::compute_plane_gpu(), blender::nodes::node_composite_corner_pin_cc::CornerPinOperation::compute_plane_mask_gpu(), blender::ed::greasepencil::image_render::compute_view_matrices(), blender::io::obj::compute_world_axes_transform(), blender::content_planes_from_clip_flag(), blender::ed::transform::createTransCursor_view3d(), blender::ed::transform::createTransParticleVerts(), blender::ed::sculpt_paint::cube_tip_init(), blender::eevee::cubeface_winmat_get(), blender::cuboid_do(), blender::ed::sculpt_paint::cursor_space_drawing_setup(), blender::curve_draw_event_add(), blender::ed::curves::curve_draw_event_add(), blender::curve_draw_exec(), blender::ed::transform::curves::curve_populate_trans_data_structs(), blender::ed::curves::curves_draw_exec(), blender::ed::object::data_xform_container_update_all(), blender::deformVerts_do(), blender::evil::DEG_iterator_temp_object_from_dupli(), blender::ed::sculpt_paint::brushes::do_clay_thumb_brush(), blender::ed::sculpt_paint::brushes::do_multiplane_scrape_brush(), blender::ed::sculpt_paint::brushes::do_pinch_brush(), blender::io::alembic::ABCTransformWriter::do_write(), blender::io::usd::USDTransformWriter::do_write(), blender::draw::drw_debug_matrix_as_bbox(), blender::DRW_text_edit_mesh_measure_stats(), blender::ED_armature_origin_set(), blender::ED_view3d_ob_project_mat_get(), blender::ED_view3d_project_float_v2_m4(), blender::edbm_dupli_extrude_cursor_invoke(), blender::edbm_polybuild_delete_at_cursor_invoke(), blender::edbm_polybuild_face_at_cursor_invoke(), blender::edbm_polybuild_split_at_cursor_invoke(), blender::edbm_polybuild_transform_at_cursor_invoke(), blender::io::usd::ensure_root_prim(), blender::bke::tests::EXPECT_M3_ORTHOGONAL(), blender::bke::BoneDeformDualQuaternionMixer< full_deform >::finalize(), blender::draw::View::frustum_boundbox_calc(), blender::draw::View::frustum_culling_planes_calc(), blender::draw::View::frustum_culling_sphere_calc(), blender::ed::sculpt_paint::SlideOperationExecutor::get_slide_transform(), blender::ed::sculpt_paint::get_symmetry_brush_transforms(), blender::ed::transform::gizmo_3d_foreach_selected(), blender::gizmo_orthoscale_prop_matrix_get(), blender::eevee::DepthOfField::jitter_apply(), blender::ed::mesh::join_objects_exec(), blender::ed::sculpt_paint::layer_brush_height_preview_draw(), blender::make_child_duplis_faces_from_editmesh(), blender::make_child_duplis_faces_from_mesh(), blender::make_child_duplis_verts_from_editmesh(), blender::make_child_duplis_verts_from_mesh(), blender::make_duplis_particle_system(), blender::ed::object::make_object_duplilist_real(), blender::merge_target(), blender::ed::sculpt_paint::brushes::multiplane_scrape_preview_draw(), blender::ed::transform::nla_transform_apply(), blender::ed::object::object_grease_pencil_add_exec(), blender::ed::object::object_origin_set_exec(), blender::draw::overlay::Lights::object_sync(), blender::object_to_grease_pencil_layer_calc(), blender::object_where_is_calc_ex(), blender::ed::transform::ObjectToTransData(), blender::eevee::operator==(), blender::ed::sculpt_paint::image::paint_blend_pixels(), blender::ed::sculpt_paint::cloth::plane_falloff_preview_draw(), blender::draw::View::OffsetData::polygon_offset_factor(), blender::proj_paint_state_viewport_init(), blender::io::usd::USDXformReader::read_matrix(), blender::io::usd::USDXformReader::read_object_data(), blender::eevee::DepthOfField::render(), blender::save_hair(), blender::nodes::node_geo_scale_instances_cc::scale_instances(), blender::ed::sculpt_paint::sculpt_init_mirror_clipping(), blender::ed::vse::sequencer_draw_scopes(), blender::ed::animrig::set_keys_to_transform(), blender::eevee::VolumeModule::set_view(), blender::io::usd::USDTransformWriter::set_xform_ops(), blender::workbench::AntiAliasingPass::setup_view(), blender::io::alembic::AbcObjectReader::setupObjectTransform(), blender::ed::transform::SnapData::snap_edge_points_impl(), blender::ed::transform::snap_object_project_ray_ex(), blender::ed::transform::snap_object_project_view3d_ex(), blender::snap_selected_to_location_rotation(), blender::ed::transform::snapCamera(), blender::ed::transform::SnapData::SnapData(), blender::ed::transform::snapMesh(), blender::softbody_to_object(), blender::sphere_do(), blender::draw::View::sync(), blender::eevee::ShadowTileMap::sync_cubeface(), blender::eevee::ShadowTileMap::sync_orthographic(), blender::math::tests::TEST(), blender::math::tests::TEST(), blender::math::tests::TEST(), blender::tests::TEST(), blender::draw::test_draw_resource_id_gen(), blender::draw::test_draw_visibility(), blender::eevee::RayTraceModule::thickness_parameters_setup(), blender::geometry::transform_curve_edit_hints(), blender::transform_mpath_point_to_camera(), blender::transformcache_evaluate(), blender::ed::curves::convert_to_particle_system::try_convert_single_object(), blender::ed::sculpt_paint::update_brush_local_mat(), blender::ed::transform::EdgeSlideData::update_proj_mat(), blender::ed::transform::VertSlideData::update_proj_mat(), blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::update_rotate_transform_and_target_property(), blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::update_scale_transform_and_target_property(), blender::ed::sculpt_paint::update_sculpt_normal(), blender::ed::view3d::geometry_nodes_gizmos::DialGizmo::update_transform(), blender::ed::view3d::geometry_nodes_gizmos::LinearGizmo::update_transform(), blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::update_translate_transform_and_target_property(), blender::bke::greasepencil::update_triangle_and_offsets_cache(), blender::io::usd::USD_get_transform(), blender::uv_map_transform_center(), blender::v3d_editvertex_buts(), blender::value_attribute_to_matrix(), blender::view3d_ruler_item_mousemove(), blender::ed::object::visual_geometry_to_objects_exec(), blender::ed::object::voxel_size_edit_invoke(), blender::waveModifier_do(), blender::what_does_obaction(), blender::WIDGETGROUP_camera_refresh(), blender::WIDGETGROUP_camera_setup(), blender::WIDGETGROUP_light_area_refresh(), blender::WIDGETGROUP_light_spot_refresh(), blender::WIDGETGROUP_light_target_draw_prepare(), blender::draw::View::OffsetData::winmat_polygon_offset(), blender::workbench_render_to_image(), blender::ed::AnimTransformable::world_to_local(), blender::write_global(), and blender::io::obj::OBJWriter::write_nurbs_curve().

◆ view() [1/2]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
template<int ViewNumCol = NumCol, int ViewNumRow = NumRow, int SrcStartCol = 0, int SrcStartRow = 0>
MutableMatView< T, ViewNumCol, ViewNumRow, NumCol, NumRow, SrcStartCol, SrcStartRow, Alignment > blender::MatBase< T, NumCol, NumRow, Alignment >::view ( )
inline

Definition at line 212 of file BLI_math_matrix_types.hh.

◆ view() [2/2]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
template<int ViewNumCol = NumCol, int ViewNumRow = NumRow, int SrcStartCol = 0, int SrcStartRow = 0>
const MatView< T, ViewNumCol, ViewNumRow, NumCol, NumRow, SrcStartCol, SrcStartRow, Alignment > blender::MatBase< T, NumCol, NumRow, Alignment >::view ( ) const
inline

◆ x_axis() [1/2]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
vec3_type & blender::MatBase< T, NumCol, NumRow, Alignment >::x_axis ( )
inline

◆ x_axis() [2/2]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
const vec3_type & blender::MatBase< T, NumCol, NumRow, Alignment >::x_axis ( ) const
inline

Definition at line 270 of file BLI_math_matrix_types.hh.

◆ y_axis() [1/2]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
vec3_type & blender::MatBase< T, NumCol, NumRow, Alignment >::y_axis ( )
inline

◆ y_axis() [2/2]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
const vec3_type & blender::MatBase< T, NumCol, NumRow, Alignment >::y_axis ( ) const
inline

Definition at line 277 of file BLI_math_matrix_types.hh.

◆ z_axis() [1/2]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
vec3_type & blender::MatBase< T, NumCol, NumRow, Alignment >::z_axis ( )
inline

◆ z_axis() [2/2]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
const vec3_type & blender::MatBase< T, NumCol, NumRow, Alignment >::z_axis ( ) const
inline

Definition at line 284 of file BLI_math_matrix_types.hh.

◆ zero()

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
MatBase blender::MatBase< T, NumCol, NumRow, Alignment >::zero ( )
inlinestatic

Definition at line 459 of file BLI_math_matrix_types.hh.

◆ operator!=

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
bool operator!= ( const MatBase< T, NumCol, NumRow, Alignment > & a,
const MatBase< T, NumCol, NumRow, Alignment > & b )
friend

Definition at line 433 of file BLI_math_matrix_types.hh.

◆ operator* [1/4]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
row_type operator* ( const col_type & a,
const MatBase< T, NumCol, NumRow, Alignment > & b )
friend

Multiply by the transposed.

Definition at line 412 of file BLI_math_matrix_types.hh.

◆ operator* [2/4]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
col_type operator* ( const MatBase< T, NumCol, NumRow, Alignment > & a,
const row_type & b )
friend

Vector operators.

Definition at line 402 of file BLI_math_matrix_types.hh.

◆ operator* [3/4]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
MatBase operator* ( const MatBase< T, NumCol, NumRow, Alignment > & a,
T b )
friend

Multiply each component by a scalar.

Definition at line 372 of file BLI_math_matrix_types.hh.

◆ operator* [4/4]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
MatBase operator* ( T a,
const MatBase< T, NumCol, NumRow, Alignment > & b )
friend

Multiply each component by a scalar.

Definition at line 380 of file BLI_math_matrix_types.hh.

◆ operator+ [1/3]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
MatBase operator+ ( const MatBase< T, NumCol, NumRow, Alignment > & a,
const MatBase< T, NumCol, NumRow, Alignment > & b )
friend

Matrix operators.

Definition at line 300 of file BLI_math_matrix_types.hh.

◆ operator+ [2/3]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
MatBase operator+ ( const MatBase< T, NumCol, NumRow, Alignment > & a,
T b )
friend

Definition at line 307 of file BLI_math_matrix_types.hh.

◆ operator+ [3/3]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
MatBase operator+ ( T a,
const MatBase< T, NumCol, NumRow, Alignment > & b )
friend

Definition at line 314 of file BLI_math_matrix_types.hh.

◆ operator- [1/4]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
MatBase operator- ( const MatBase< T, NumCol, NumRow, Alignment > & a)
friend

Definition at line 331 of file BLI_math_matrix_types.hh.

◆ operator- [2/4]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
MatBase operator- ( const MatBase< T, NumCol, NumRow, Alignment > & a,
const MatBase< T, NumCol, NumRow, Alignment > & b )
friend

Definition at line 338 of file BLI_math_matrix_types.hh.

◆ operator- [3/4]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
MatBase operator- ( const MatBase< T, NumCol, NumRow, Alignment > & a,
T b )
friend

Definition at line 345 of file BLI_math_matrix_types.hh.

◆ operator- [4/4]

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
MatBase operator- ( T a,
const MatBase< T, NumCol, NumRow, Alignment > & b )
friend

Definition at line 352 of file BLI_math_matrix_types.hh.

◆ operator<<

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
std::ostream & operator<< ( std::ostream & stream,
const MatBase< T, NumCol, NumRow, Alignment > & mat )
friend

NOTE: j and i are swapped to follow mathematical convention.

Definition at line 482 of file BLI_math_matrix_types.hh.

◆ operator==

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
bool operator== ( const MatBase< T, NumCol, NumRow, Alignment > & a,
const MatBase< T, NumCol, NumRow, Alignment > & b )
friend

Compare.

Definition at line 423 of file BLI_math_matrix_types.hh.

Member Data Documentation

◆ col_len

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
int blender::MatBase< T, NumCol, NumRow, Alignment >::col_len = NumCol
staticconstexpr

Definition at line 83 of file BLI_math_matrix_types.hh.

◆ min_dim

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
int blender::MatBase< T, NumCol, NumRow, Alignment >::min_dim = (NumRow < NumCol) ? NumRow : NumCol
staticconstexpr

Definition at line 82 of file BLI_math_matrix_types.hh.

◆ row_len

template<typename T, int NumCol, int NumRow, int Alignment = (((NumCol * NumRow) % 4 == 0) ? 4 : 1) * sizeof(T)>
int blender::MatBase< T, NumCol, NumRow, Alignment >::row_len = NumRow
staticconstexpr

Definition at line 84 of file BLI_math_matrix_types.hh.


The documentation for this struct was generated from the following file: