|
Blender V5.3
|
#include "gpu_shader_math_constants.bsl.hh"#include "gpu_shader_math_rotation_conversion.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.
Functions | |
| float3 | project_plane_normalized_v3_v3v3 (float3 p, float3 v_plane) |
| float | angle_signed_on_axis_v3v3_v3 (float3 v1, float3 v2, float3 axis) |
| void | align_rotation_to_vector_auto_pivot (float4 rotation_in, float factor, float3 input_vector, float3 local_main_axis, float4 &rotation) |
| void | align_rotation_to_vector_fixed_pivot (float4 rotation_in, float factor, float3 input_vector, float3 local_main_axis, float3 local_pivot_axis, float4 &rotation) |
| void align_rotation_to_vector_auto_pivot | ( | float4 | rotation_in, |
| float | factor, | ||
| float3 | input_vector, | ||
| float3 | local_main_axis, | ||
| float4 & | rotation ) |
Definition at line 35 of file gpu_shader_material_align_rotation_to_vector.bsl.hh.
References align_rotation_to_vector_auto_pivot(), angle(), AxisAngle::angle, angle_normalized(), Quaternion::as_float4(), AxisAngle::axis, cross, Quaternion::from_float4(), is_zero(), math_quaternion_multiply(), normalize, to_quaternion(), and transform_point_by_quaternion().
Referenced by align_rotation_to_vector_auto_pivot().
| void align_rotation_to_vector_fixed_pivot | ( | float4 | rotation_in, |
| float | factor, | ||
| float3 | input_vector, | ||
| float3 | local_main_axis, | ||
| float3 | local_pivot_axis, | ||
| float4 & | rotation ) |
Definition at line 71 of file gpu_shader_material_align_rotation_to_vector.bsl.hh.
References align_rotation_to_vector_fixed_pivot(), all(), angle(), AxisAngle::angle, angle_signed_on_axis_v3v3_v3(), Quaternion::as_float4(), AxisAngle::axis, equal, Quaternion::from_float4(), is_zero(), M_PI, math_quaternion_multiply(), normalize, to_quaternion(), and transform_point_by_quaternion().
Referenced by align_rotation_to_vector_fixed_pivot().
Definition at line 19 of file gpu_shader_material_align_rotation_to_vector.bsl.hh.
References angle(), angle_normalized(), angle_signed_on_axis_v3v3_v3(), cross, dot(), M_PI, normalize, and project_plane_normalized_v3_v3v3().
Referenced by align_rotation_to_vector_fixed_pivot(), and angle_signed_on_axis_v3v3_v3().
Definition at line 12 of file gpu_shader_material_align_rotation_to_vector.bsl.hh.
References dot(), normalize, and project_plane_normalized_v3_v3v3().
Referenced by angle_signed_on_axis_v3v3_v3(), and project_plane_normalized_v3_v3v3().