|
Blender V4.3
|
Go to the source code of this file.
Classes | |
| class | btQuaternion |
| The btQuaternion implements quaternion to perform linear algebra rotations in combination with btMatrix3x3, btVector3 and btTransform. More... | |
| struct | btQuaternionFloatData |
| struct | btQuaternionDoubleData |
Macros | |
| #define | btQuaternionData btQuaternionFloatData |
| #define | btQuaternionDataName "btQuaternionFloatData" |
| #define btQuaternionData btQuaternionFloatData |
Definition at line 25 of file btQuaternion.h.
Referenced by btQuaternion::serialize().
| #define btQuaternionDataName "btQuaternionFloatData" |
Definition at line 26 of file btQuaternion.h.
| SIMD_FORCE_INLINE btScalar btAngle | ( | const btQuaternion & | q1, |
| const btQuaternion & | q2 ) |
Return the angle between two quaternions.
Definition at line 902 of file btQuaternion.h.
References btQuaternion::angle().
Referenced by calculateNormalCone().
| SIMD_FORCE_INLINE btScalar dot | ( | const btQuaternion & | q1, |
| const btQuaternion & | q2 ) |
Calculate the dot product between two quaternions.
Definition at line 888 of file btQuaternion.h.
References btQuaternion::dot().
| SIMD_FORCE_INLINE btQuaternion inverse | ( | const btQuaternion & | q | ) |
Return the inverse of a quaternion.
Definition at line 909 of file btQuaternion.h.
References btQuaternion::inverse().
| SIMD_FORCE_INLINE btScalar length | ( | const btQuaternion & | q | ) |
Return the length of a quaternion.
Definition at line 895 of file btQuaternion.h.
References btQuaternion::length().
Referenced by blender::length_parameterize::accumulate_lengths(), blender::nodes::node_geo_curve_spline_parameter_cc::accumulated_lengths_curve_domain(), blender::geometry::add_curves_on_mesh(), iTaSC::Cache::addCacheItem(), iTaSC::Cache::addCacheVectorIfDifferent(), blender::gpu::MTLBufferPool::allocate_aligned_with_data(), annotation_stroke_arrow_calc_points_segment(), apply_lengths_iter(), arrayModifier_doArray(), base_callback(), bevel_build_cutoff(), blender::gpu::MTLVertBuf::bind(), blender::gpu::MTLComputeState::bind_compute_bytes(), blender::gpu::MTLRenderPassState::bind_fragment_bytes(), blender::gpu::MTLRenderPassState::bind_vertex_bytes(), BKE_attribute_search_for_write(), BKE_attributes_length(), BKE_icon_geom_invert_lightness(), BKE_nurb_calc_length(), BKE_pchan_bbone_handles_compute(), BKE_pchan_bbone_spline_compute(), BLI_current_working_dir(), BLI_mmap_open(), BLI_mmap_read(), BLI_str_utf8_invalid_byte(), BLI_str_utf8_invalid_strip(), BLI_strncpy_utf8_rlen(), blo_do_versions_pre250(), bm_edge_info_average_length_with_fallback(), BM_vert_calc_median_tagged_edge_length(), bmo_inset_region_exec(), boid_body(), bone_align_to_bone(), BPy_IDArray_getbuffer(), bpy_prop_string_get_fn(), bpy_prop_string_length_fn(), brush_puff(), blender::geometry::calc_position_without_interpolation(), blender::bke::curves::bezier::calculate_aligned_handle(), calculate_point_length(), blender::animrig::ChannelBag::channel_group_create(), color_clamp_index(), compile_shader_program(), BVHUnaligned::compute_aligned_space(), blender::ed::sculpt_paint::ScaleCurvesEffect::compute_poly_curve_length(), blender::geometry::curve_constraints::compute_segment_lengths(), IK_QPositionTask::ComputeJacobian(), convert_tree(), blender::nodes::node_geo_curve_primitive_line_cc::create_direction_line_curve(), blender::nodes::node_geo_curve_sample_cc::curve_accumulated_lengths(), blender::nodes::node_geo_curve_to_points_cc::curve_to_points(), blender::gpu::debug::DEBUG_FUNC_DECLARE(), debugDrawConstraint(), dfdx_spring(), distribute_simple_children(), do_kink(), do_path_effectors(), draw_axes(), draw_bone_update_disp_matrix_bbone(), drawArrow(), drw_shgroup_uniform(), drw_shgroup_uniform_create_ex(), blender::gpu::MTLVertBuf::duplicate_data(), ED_armature_ebone_add_primitive(), ED_buttons_tabs_list(), ED_node_tree_path_length(), ED_select_similar_compare_float_tree(), blender::imbuf::transform::edge_aa(), edge_wind_vertex(), blender::gpu::MTLContext::ensure_buffer_bindings(), blender::gpu::MTLContext::ensure_buffer_bindings(), execute_posetree(), execute_scene(), export_hair_curves(), fb(), fbderiv(), fbstar(), fbstar_jacobi(), blender::gpu::MTLShader::finalize(), iTaSC::Armature::finalize(), blender::array_utils::find_all_ranges(), blender::ed::greasepencil::find_curve_intersections(), blender::gpu::MTLBufferRange::flush(), blender::gpu::MTLBuffer::flush_range(), blender::ed::greasepencil::generate_corner(), blender::get_build_factor(), get_fcurves_of_property(), blender::geometry::get_permutation(), blender::animrig::get_rna_values(), blender::gpu::MTLTexture::get_storagebuf(), Freestyle::ViewEdge::getLength2D(), blender::gpu::GLDrawList::GLDrawList(), gpencil_stroke_editcurve_generate_edgecases(), GPU_indexbuf_create_subrange(), GPU_indexbuf_create_subrange_in_place(), blender::ed::sculpt_paint::grease_pencil_fill_extension_cut(), blender::ed::sculpt_paint::grease_pencil_fill_get_extension_data(), blender::nodes::node_geo_curve_to_points_cc::grease_pencil_to_points(), hair_create_input_mesh(), handle_app1(), GHOST_SystemCocoa::handleKeyEvent(), hash_shuffle_uint(), IK_SetTransform(), blender::gpu::IndexBuf::init_subrange(), InputCustomRatioFlip(), Interface1D_length_2d_get(), blender::gpu::is_apple_sillicon(), iterate_lengths_iter(), line_directive(), lineart_sort_adjacent_items(), BlenderPointDensityLoader::load_pixels(), BlenderSmokeLoader::load_pixels(), blender::gpu::MTLPixelBuffer::map(), MOD_solidify_nonmanifold_modifyMesh(), blender::gpu::MTLDrawList::MTLDrawList(), blender::gpu::MTLShader::MTLShader(), nlaevalchan_blend_value(), nlaevalchan_blend_value_get_inverted_lower_evalchan(), nlaevalchan_blend_value_get_inverted_upper_evalchan(), nlaevalchan_combine_value(), nlaevalchan_combine_value_get_inverted_lower_evalchan(), nlaevalchan_combine_value_get_inverted_upper_evalchan(), nlaevalchan_detect_mix_mode(), nlaevalchan_get_default_values(), nlaevalchan_snapshot_new(), nlaevalchan_verify_key(), nlastrip_get_frame_transition(), blender::nodes::node_geo_curve_primitive_line_cc::node_declare(), blender::nodes::node_geo_curve_resample_cc::node_declare(), blender::nodes::node_geo_curve_sample_cc::node_declare(), blender::nodes::node_geo_curve_to_points_cc::node_declare(), blender::nodes::node_geo_curve_length_cc::node_geo_exec(), blender::nodes::node_geo_curve_resample_cc::node_geo_exec(), Normalize(), osl_range_check(), osl_range_check_err(), blender::ed::sculpt_paint::paint_line_strokes_spacing(), blender::ed::sculpt_paint::paint_space_stroke(), blender::ed::sculpt_paint::paint_space_stroke_spacing_variable(), plane_to_point_vector_v3_normalized(), prop_subscript_ass_array_slice(), prop_subscript_ass_array_slice__as_seq_fast(), prop_subscript_ass_array_slice__bool_recursive(), prop_subscript_ass_array_slice__float_recursive(), prop_subscript_ass_array_slice__int_recursive(), psys_cache_paths(), psys_get_particle_on_path(), psys_hair_use_simulation(), PyC_AsArray(), PyC_AsArray_FAST(), PyC_AsArray_Multi_FAST_impl(), pygpu_shader_uniform_bool(), pygpu_shader_uniform_float(), pygpu_shader_uniform_int(), pygpu_shader_uniform_vector_float(), pygpu_shader_uniform_vector_int(), pyrna_prop_array_subscript_slice(), Quaternion_rotate(), blender::gpu::MTLVertBuf::read(), rna_array_lookup_int(), rna_builtin_properties_lookup_string(), RNA_def_float_matrix(), RNA_def_property_array(), RNA_def_property_collection_funcs(), RNA_def_property_multi_array(), RNA_def_property_string_funcs(), rna_ensure_property_multi_array_length(), rna_iterator_array_begin(), RNA_parameter_dynamic_length_set(), RNA_parameter_dynamic_length_set_data(), RNA_property_array_dimension(), RNA_property_as_string(), rna_property_boolean_get_default_array_values(), RNA_property_collection_length(), RNA_property_float_get_default_array(), rna_property_float_get_default_array_values(), RNA_property_int_get_default_array(), rna_property_int_get_default_array_values(), RNA_property_string_get(), RNA_property_string_get_alloc(), RNA_property_string_get_default_alloc(), blender::nodes::node_geo_curve_sample_cc::sample_indices_and_factors_to_compressed(), scale_point_to_length(), scale_points_to_length(), IK_QSegment::SetTransform(), btGjkEpaSolver2::SignedDistance(), SIM_mass_spring_force_edge_wind(), SIM_mass_spring_force_spring_bending(), SIM_mass_spring_force_spring_goal(), SIM_mass_spring_force_spring_linear(), similar_edge_select_exec(), blender::bke::mesh::split_corner_normal_fan_do(), spring_grad_dir(), spring_length(), blender::StringRef::StringRef(), blender::StringRef::StringRef(), blender::gpu::supports_barycentric_whitelist(), blender::asset_system::tests::TEST(), blender::geometry::trim_sample_length(), txt_extended_ascii_as_utf8(), txt_sel_to_buf(), ui_but_get_pasted_text_from_clipboard(), unit_as_string_main(), blender::gpu::MTLStorageBuf::update(), blender::bke::greasepencil::update_curve_plane_normal_cache(), blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::update_scale_style(), blender::ed::view3d::geometry_nodes_gizmos::LinearGizmo::update_style(), and blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::update_translate_style().
| SIMD_FORCE_INLINE btQuaternion operator* | ( | const btQuaternion & | q, |
| const btVector3 & | w ) |
| SIMD_FORCE_INLINE btQuaternion operator* | ( | const btQuaternion & | q1, |
| const btQuaternion & | q2 ) |
Return the product of two quaternions.
Definition at line 633 of file btQuaternion.h.
| SIMD_FORCE_INLINE btQuaternion operator* | ( | const btVector3 & | w, |
| const btQuaternion & | q ) |
| SIMD_FORCE_INLINE btVector3 quatRotate | ( | const btQuaternion & | rotation, |
| const btVector3 & | v ) |
Definition at line 926 of file btQuaternion.h.
References btVector3, btQuaternion::inverse(), and v.
Referenced by btAdjustInternalEdgeContacts(), btHingeConstraint(), btHingeConstraint(), calcAngleInfo(), calcAngleInfo2(), compTreeLinkVelocities(), btRigidBody::computeGyroscopicImpulseImplicit_Body(), btMultiBodyGearConstraint::createConstraintRows(), btMultiBodyJointLimitConstraint::createConstraintRows(), btMultiBodyJointMotor::createConstraintRows(), btMultiBodySliderConstraint::createConstraintRows(), btMultiBodyDynamicsWorld::debugDrawWorld(), GetPointForAngle(), localDirToWorld(), localPosToWorld(), predictPositionsMultiDof(), btConnectivityProcessor::processTriangle(), setAxis(), setMotorTarget(), setMotorTargetInConstraintSpace(), stepPositionsMultiDof(), btMultibodyLink::updateCacheMultiDof(), updateCollisionObjectInterpolationWorldTransforms(), updateCollisionObjectWorldTransforms(), btMultibodyLink::updateInterpolationCacheMultiDof(), worldDirToLocal(), and worldPosToLocal().
| SIMD_FORCE_INLINE btQuaternion shortestArcQuat | ( | const btVector3 & | v0, |
| const btVector3 & | v1 ) |
Definition at line 940 of file btQuaternion.h.
References btPlaneSpace1(), btSqrt(), btVector3, and SIMD_EPSILON.
Referenced by btHingeConstraint(), btHingeConstraint(), calcAngleInfo(), calcAngleInfo2(), setAxis(), setMotorTarget(), setMotorTargetInConstraintSpace(), and shortestArcQuatNormalize2().
| SIMD_FORCE_INLINE btQuaternion shortestArcQuatNormalize2 | ( | btVector3 & | v0, |
| btVector3 & | v1 ) |
Definition at line 959 of file btQuaternion.h.
References btVector3, and shortestArcQuat().
Referenced by getRotation().
| SIMD_FORCE_INLINE btQuaternion slerp | ( | const btQuaternion & | q1, |
| const btQuaternion & | q2, | ||
| const btScalar & | t ) |
Return the result of spherical linear interpolation betwen two quaternions.
| q1 | The first quaternion |
| q2 | The second quaternion |
| t | The ration between q1 and q2. t = 0 return q1, t=1 returns q2 Slerp assumes constant velocity between positions. |
Definition at line 920 of file btQuaternion.h.
References btQuaternion::slerp().