Blender V5.3
gpu_shader_math_matrix_conversion.bsl.hh File Reference

Go to the source code of this file.

Functions

Conversion function.
float3 to_scale (float3x3 mat)
float3 to_scale (float4x4 mat)
template<typename MatT, bool allow_negative_scale>
float3 to_scale (MatT mat)
template float3 to_scale< float3x3, true > (float3x3 mat)
template float3 to_scale< float3x3, false > (float3x3 mat)
template float3 to_scale< float4x4, true > (float4x4 mat)
template float3 to_scale< float4x4, false > (float4x4 mat)

Function Documentation

◆ to_scale() [1/3]

◆ to_scale() [2/3]

float3 to_scale ( float4x4 mat)

Extract the absolute 3d scale from a transform matrix.

Definition at line 26 of file gpu_shader_math_matrix_conversion.bsl.hh.

References to_scale().

◆ to_scale() [3/3]

template<typename MatT, bool allow_negative_scale>
float3 to_scale ( MatT mat)

Extract the absolute 3d scale from a transform matrix.

Definition at line 33 of file gpu_shader_math_matrix_conversion.bsl.hh.

References is_negative(), and to_scale().

◆ to_scale< float3x3, false >()

template float3 to_scale< float3x3, false > ( float3x3 mat)

References to_scale().

◆ to_scale< float3x3, true >()

template float3 to_scale< float3x3, true > ( float3x3 mat)

References to_scale().

◆ to_scale< float4x4, false >()

template float3 to_scale< float4x4, false > ( float4x4 mat)

References to_scale().

◆ to_scale< float4x4, true >()

template float3 to_scale< float4x4, true > ( float4x4 mat)

References to_scale().