|
Blender V5.3
|
#include "gpu_shader_math_axis_angle.bsl.hh"#include "gpu_shader_math_euler.bsl.hh"#include "gpu_shader_math_matrix_conversion.bsl.hh"#include "gpu_shader_math_matrix_normalize.bsl.hh"#include "gpu_shader_math_quaternion.bsl.hh"#include "gpu_shader_math_vector.bsl.hh"#include "gpu_shader_math_vector_compare.bsl.hh"Go to the source code of this file.
Namespaces | |
| namespace | detail |
Definition at line 301 of file gpu_shader_math_rotation_conversion.bsl.hh.
References to_axis_angle(), and to_quaternion().
| AxisAngle to_axis_angle | ( | Quaternion | quat | ) |
Definition at line 281 of file gpu_shader_math_rotation_conversion.bsl.hh.
References abs, acos, angle(), is_zero(), sin, to_axis_angle(), Quaternion::w, Quaternion::x, Quaternion::y, and Quaternion::z.
Referenced by gpu_math_test_main(), rotation_to_axis_angle(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), to_axis_angle(), and to_axis_angle().
Extract euler rotation from transform matrix.
Definition at line 254 of file gpu_shader_math_rotation_conversion.bsl.hh.
References to_euler().
Extract euler rotation from transform matrix.
Definition at line 240 of file gpu_shader_math_rotation_conversion.bsl.hh.
References EulerXYZ::as_float3(), length_manhattan(), normalize, normalized(), detail::normalized_to_eul2(), and to_euler().
Referenced by gpu_math_test_main(), rotation_to_euler(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), to_euler(), to_euler(), to_euler(), to_euler(), to_rot_scale(), and to_rot_scale().
Extract euler rotation from transform matrix.
Definition at line 270 of file gpu_shader_math_rotation_conversion.bsl.hh.
References to_euler().
Extract euler rotation from transform matrix.
Definition at line 262 of file gpu_shader_math_rotation_conversion.bsl.hh.
References normalized(), and to_euler().
| void to_loc_rot_scale | ( | float4x4 | mat, |
| float3 & | r_location, | ||
| EulerXYZ & | r_rotation, | ||
| float3 & | r_scale ) |
Definition at line 365 of file gpu_shader_math_rotation_conversion.bsl.hh.
References to_loc_rot_scale(), and to_rot_scale().
Referenced by gpu_math_test_main(), interpolate_fast(), separate_transform(), blender::eevee::IrradianceBake::surfel_raster_views_sync(), blender::tests::TEST(), blender::tests::TEST(), to_loc_rot_scale(), to_loc_rot_scale(), to_loc_rot_scale(), and to_loc_rot_scale().
| void to_loc_rot_scale | ( | float4x4 | mat, |
| float3 & | r_location, | ||
| EulerXYZ & | r_rotation, | ||
| float3 & | r_scale, | ||
| const bool | allow_negative_scale ) |
Definition at line 370 of file gpu_shader_math_rotation_conversion.bsl.hh.
References to_loc_rot_scale(), and to_rot_scale().
| void to_loc_rot_scale | ( | float4x4 | mat, |
| float3 & | r_location, | ||
| Quaternion & | r_rotation, | ||
| float3 & | r_scale ) |
Definition at line 379 of file gpu_shader_math_rotation_conversion.bsl.hh.
References to_loc_rot_scale(), and to_rot_scale().
| void to_loc_rot_scale | ( | float4x4 | mat, |
| float3 & | r_location, | ||
| Quaternion & | r_rotation, | ||
| float3 & | r_scale, | ||
| const bool | allow_negative_scale ) |
Definition at line 384 of file gpu_shader_math_rotation_conversion.bsl.hh.
References to_loc_rot_scale(), and to_rot_scale().
| Quaternion to_quaternion | ( | AxisAngle | axis_angle | ) |
Using half angle identities: sin(angle / 2) = sqrt((1 - angle_cos) / 2)
Definition at line 198 of file gpu_shader_math_rotation_conversion.bsl.hh.
References AxisAngle::angle, AxisAngle::axis, cos, sin, sqrt, to_quaternion(), Quaternion::w, Quaternion::x, Quaternion::y, and Quaternion::z.
| Quaternion to_quaternion | ( | EulerXYZ | eul | ) |
Definition at line 138 of file gpu_shader_math_rotation_conversion.bsl.hh.
References cos, sin, to_quaternion(), Quaternion::w, EulerXYZ::x, Quaternion::x, EulerXYZ::y, Quaternion::y, EulerXYZ::z, and Quaternion::z.
Referenced by align_rotation_to_vector_auto_pivot(), align_rotation_to_vector_fixed_pivot(), axes_to_rotation(), axis_angle_to_rotation(), euler_to_rotation(), gpu_math_test_main(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), to_axis_angle(), to_quaternion(), to_quaternion(), to_quaternion(), to_quaternion(), to_quaternion(), to_quaternion(), to_quaternion(), to_rot_scale(), and to_rot_scale().
| Quaternion to_quaternion | ( | float3 | axis, |
| float | angle ) |
Definition at line 219 of file gpu_shader_math_rotation_conversion.bsl.hh.
References angle(), AxisAngle::angle, AxisAngle::axis, Quaternion::identity(), is_zero(), normalize, and to_quaternion().
| Quaternion to_quaternion | ( | float3x3 | mat | ) |
Extract quaternion rotation from transform matrix.
Definition at line 166 of file gpu_shader_math_rotation_conversion.bsl.hh.
References normalize, detail::normalized_to_quat_with_checks(), and to_quaternion().
| Quaternion to_quaternion | ( | float3x3 | mat, |
| const bool | normalized ) |
Extract quaternion rotation from transform matrix.
Definition at line 174 of file gpu_shader_math_rotation_conversion.bsl.hh.
References normalize, normalized(), and to_quaternion().
| Quaternion to_quaternion | ( | float4x4 | mat | ) |
Extract quaternion rotation from transform matrix.
Definition at line 185 of file gpu_shader_math_rotation_conversion.bsl.hh.
References to_quaternion().
| Quaternion to_quaternion | ( | float4x4 | mat, |
| const bool | normalized ) |
Extract quaternion rotation from transform matrix.
Definition at line 193 of file gpu_shader_math_rotation_conversion.bsl.hh.
References normalized(), and to_quaternion().
Decompose a matrix into location, rotation, and scale components.
| allow_negative_scale | if true, will compute determinant to know if matrix is negative. Rotation and scale values will be flipped if it is negative. This is a costly operation so it is disabled by default. |
Definition at line 319 of file gpu_shader_math_rotation_conversion.bsl.hh.
References to_euler(), to_rot_scale(), and to_scale().
Referenced by gpu_math_test_main(), blender::tests::TEST(), to_loc_rot_scale(), to_loc_rot_scale(), to_loc_rot_scale(), to_loc_rot_scale(), to_rot_scale(), to_rot_scale(), to_rot_scale(), and to_rot_scale().
| void to_rot_scale | ( | float3x3 | mat, |
| EulerXYZ & | r_rotation, | ||
| float3 & | r_scale, | ||
| const bool | allow_negative_scale ) |
Decompose a matrix into location, rotation, and scale components.
| allow_negative_scale | if true, will compute determinant to know if matrix is negative. Rotation and scale values will be flipped if it is negative. This is a costly operation so it is disabled by default. |
Definition at line 331 of file gpu_shader_math_rotation_conversion.bsl.hh.
References is_negative(), normalize_and_get_size(), to_euler(), and to_rot_scale().
| void to_rot_scale | ( | float3x3 | mat, |
| Quaternion & | r_rotation, | ||
| float3 & | r_scale ) |
Definition at line 345 of file gpu_shader_math_rotation_conversion.bsl.hh.
References to_quaternion(), to_rot_scale(), and to_scale().
| void to_rot_scale | ( | float3x3 | mat, |
| Quaternion & | r_rotation, | ||
| float3 & | r_scale, | ||
| const bool | allow_negative_scale ) |
Definition at line 350 of file gpu_shader_math_rotation_conversion.bsl.hh.
References is_negative(), normalize_and_get_size(), to_quaternion(), and to_rot_scale().