Blender V4.3
attribute_math.cc File Reference

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::bke
 
namespace  blender::bke::attribute_math
 

Functions

template<>
math::Quaternion blender::bke::attribute_math::mix2 (const float factor, const math::Quaternion &a, const math::Quaternion &b)
 
template<>
math::Quaternion blender::bke::attribute_math::mix3 (const float3 &weights, const math::Quaternion &v0, const math::Quaternion &v1, const math::Quaternion &v2)
 
template<>
math::Quaternion blender::bke::attribute_math::mix4 (const float4 &weights, const math::Quaternion &v0, const math::Quaternion &v1, const math::Quaternion &v2, const math::Quaternion &v3)
 
template<>
float4x4 blender::bke::attribute_math::mix2 (const float factor, const float4x4 &a, const float4x4 &b)
 
template<>
float4x4 blender::bke::attribute_math::mix3 (const float3 &weights, const float4x4 &v0, const float4x4 &v1, const float4x4 &v2)
 
template<>
float4x4 blender::bke::attribute_math::mix4 (const float4 &weights, const float4x4 &v0, const float4x4 &v1, const float4x4 &v2, const float4x4 &v3)
 
Generic Array Utils Implementations

Extra implementations of functions from #BLI_array_utils.hh for all attribute types, used to avoid templating the same logic for each type in many places.

void blender::bke::attribute_math::gather (GSpan src, Span< int > map, GMutableSpan dst)
 
void blender::bke::attribute_math::gather (const GVArray &src, Span< int > map, GMutableSpan dst)
 
void blender::bke::attribute_math::gather_group_to_group (OffsetIndices< int > src_offsets, OffsetIndices< int > dst_offsets, const IndexMask &selection, GSpan src, GMutableSpan dst)
 
void blender::bke::attribute_math::gather_to_groups (OffsetIndices< int > dst_offsets, const IndexMask &src_selection, GSpan src, GMutableSpan dst)