|
Blender
V2.59
|
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... | |
Functions | |
| SIMD_FORCE_INLINE btQuaternion | operator- (const btQuaternion &q) |
| Return the negative of a quaternion. | |
| SIMD_FORCE_INLINE btQuaternion | operator* (const btQuaternion &q1, const btQuaternion &q2) |
| Return the product of two quaternions. | |
| SIMD_FORCE_INLINE btQuaternion | operator* (const btQuaternion &q, const btVector3 &w) |
| SIMD_FORCE_INLINE btQuaternion | operator* (const btVector3 &w, const btQuaternion &q) |
| SIMD_FORCE_INLINE btScalar | dot (const btQuaternion &q1, const btQuaternion &q2) |
| Calculate the dot product between two quaternions. | |
| SIMD_FORCE_INLINE btScalar | length (const btQuaternion &q) |
| Return the length of a quaternion. | |
| SIMD_FORCE_INLINE btScalar | angle (const btQuaternion &q1, const btQuaternion &q2) |
| Return the angle between two quaternions. | |
| SIMD_FORCE_INLINE btQuaternion | inverse (const btQuaternion &q) |
| Return the inverse of a quaternion. | |
| SIMD_FORCE_INLINE btQuaternion | slerp (const btQuaternion &q1, const btQuaternion &q2, const btScalar &t) |
| Return the result of spherical linear interpolation betwen two quaternions. | |
| SIMD_FORCE_INLINE btVector3 | quatRotate (const btQuaternion &rotation, const btVector3 &v) |
| SIMD_FORCE_INLINE btQuaternion | shortestArcQuat (const btVector3 &v0, const btVector3 &v1) |
| SIMD_FORCE_INLINE btQuaternion | shortestArcQuatNormalize2 (btVector3 &v0, btVector3 &v1) |
| SIMD_FORCE_INLINE btScalar angle | ( | const btQuaternion & | q1, |
| const btQuaternion & | q2 | ||
| ) |
Return the angle between two quaternions.
Definition at line 371 of file btQuaternion.h.
References btQuaternion::angle().
Referenced by add_render_lamp(), applyModifier(), applyTranslation(), ATTRIBUTE_ALIGNED16(), axisProjection(), basic_rotate(), BLF_rotation(), BLF_rotation_default(), boid_body(), btAtan2Fast(), btGetAngle(), C_Matrix_Rotation(), cache_key_incremental_rotation(), calc_radial_symmetry_feather(), btTransformUtil::calculateVelocity(), btTransformUtil::calculateVelocityQuaternion(), check_zone(), TransformReader::dae_rotate_to_mat4(), do_chroma_key(), do_guides(), do_rotate_brush(), draw_rotation_guide(), draw_spot_cone(), btIDebugDraw::drawArc(), drawArc(), drawHelpline(), dvar_eval_rotDiff(), EM_make_hq_normals(), Euler_rotate_axis(), AnimationImporter::evaluate_animation(), extrawindow_spin_cursor(), filterSmartReebGraph(), flyApply_ndof(), gearGL(), KDL::Rotation::GetRotAngle(), glutil_draw_filled_arc(), glutil_draw_lined_arc(), gpu_lamp_from_blender(), Handle_set_cone_angle_inner(), Handle_set_cone_angle_outer(), InputAngle(), load_tex(), make_bevel_list_3D_minimum_twist(), makebevelcurve(), makeshadowbuf(), mat3_to_quat_is_ok(), mul_fac_qt_fl(), ndof_orbit_invoke(), ndof_to_quat(), KDL::operator>>(), p_chart_fill_boundary(), p_edge_boundary_angle(), pivotcon_evaluate(), project_from_camera(), project_paint_uvpixel_mask(), py_blf_rotation(), Quaternion_getAxisVec(), Quaternion_new(), Quaternion_setAngle(), Quaternion_setAxisVec(), Rot(), rotation_between_vecs_to_quat(), RotationBetween(), select_linked_flat_faces(), select_sharp_edges_exec(), shadeHaloFloat(), similar_edge_select__internal(), similar_face_select__internal(), similar_vert_select_exec(), sk_detectDeleteGesture(), sk_detectReverseGesture(), sk_detectTrimGesture(), sk_drawEdge(), sk_drawNormal(), spotvolume(), test_manipulator_axis(), btGeneric6DofConstraint::testAngularLimitMotor(), testRadialSymmetry(), tex_strength(), tri_to_quat(), uiStyleFontDrawRotated(), vec_to_quat(), view3d_align_axis_to_vector(), viewrotate_apply(), and WardIso_Spec().
| SIMD_FORCE_INLINE btScalar dot | ( | const btQuaternion & | q1, |
| const btQuaternion & | q2 | ||
| ) |
Calculate the dot product between two quaternions.
Definition at line 356 of file btQuaternion.h.
References btQuaternion::dot().
| SIMD_FORCE_INLINE btQuaternion inverse | ( | const btQuaternion & | q | ) |
Return the inverse of a quaternion.
Definition at line 378 of file btQuaternion.h.
References btQuaternion::inverse().
Referenced by AngularImpulseMatrix(), drawspiral(), ImpulseMatrix(), KX_GameObject::NodeSetGlobalOrientation(), and btConeTwistConstraint::setMotorTarget().
| SIMD_FORCE_INLINE btScalar length | ( | const btQuaternion & | q | ) |
Return the length of a quaternion.
Definition at line 364 of file btQuaternion.h.
References btQuaternion::length().
Referenced by _face_calcIFNo(), AUD_Mixer::add(), btSoftBody::appendLink(), arrayModifier_doArray(), ATTRIBUTE_ALIGNED16(), AUD_convert_double_float(), AUD_convert_double_s16(), AUD_convert_double_s24_be(), AUD_convert_double_s24_le(), AUD_convert_double_s32(), AUD_convert_double_u8(), AUD_convert_float_double(), AUD_convert_float_s16(), AUD_convert_float_s24_be(), AUD_convert_float_s24_le(), AUD_convert_float_s32(), AUD_convert_float_u8(), AUD_convert_s16_double(), AUD_convert_s16_float(), AUD_convert_s16_s24_be(), AUD_convert_s16_s24_le(), AUD_convert_s16_s32(), AUD_convert_s16_u8(), AUD_convert_s24_double_be(), AUD_convert_s24_double_le(), AUD_convert_s24_float_be(), AUD_convert_s24_float_le(), AUD_convert_s24_s16_be(), AUD_convert_s24_s16_le(), AUD_convert_s24_s32_be(), AUD_convert_s24_s32_le(), AUD_convert_s24_u8_be(), AUD_convert_s24_u8_le(), AUD_convert_s32_double(), AUD_convert_s32_float(), AUD_convert_s32_s16(), AUD_convert_s32_s24_be(), AUD_convert_s32_s24_le(), AUD_convert_s32_u8(), AUD_convert_u8_double(), AUD_convert_u8_float(), AUD_convert_u8_s16(), AUD_convert_u8_s24_be(), AUD_convert_u8_s24_le(), AUD_convert_u8_s32(), AUD_LimiterReader::AUD_LimiterReader(), AUD_readSound(), AUD_StreamBufferFactory::AUD_StreamBufferFactory(), b_bone_spline_setup(), base_callback(), BGL_MakeBuffer(), BLI_calcGraphLength(), BLI_subtreeLength(), boid_body(), bone_align_to_bone(), brush_puff(), btAdjustInternalEdgeContacts(), Buffer_item(), btContinuousConvexCollision::calcTimeOfImpact(), ccgSubSurf__calcVertNormals(), check_path_length(), cloth_bvh_objcollision(), cloth_calc_spring_force(), IK_QPositionTask::ComputeJacobian(), convert_tree(), MeshImporter::create_mesh_object(), AnimationExporter::create_source_from_fcurve(), btDiscreteDynamicsWorld::debugDrawConstraint(), btSoftBody::defaultCollisionHandler(), delete_key_button_exec(), detect_super_cols(), dfdx_spring_type1(), distribute_simple_children(), do_kink(), do_versions(), AUD_SRCResampleReader::doCallback(), draw_b_bone(), draw_line_bone(), draw_new_particle_system(), draw_sphere_bone(), drawArrow(), drawseqwave(), esubdivideflag(), execute_posetree(), execute_scene(), export_fluid_objects(), ExtendArcBuckets(), BSP_CSGMesh::FacePlane(), Factory_fadein(), Factory_fadeout(), iTaSC::Armature::finalize(), find_ordering(), fluid_init_all_channels(), garbage_collection(), btCollisionShape::getAngularMotionDisc(), BL_ArmatureObject::GetBoneLength(), btCollisionShape::getBoundingSphere(), btGjkPairDetector::getClosestPointsNonVirtual(), GPU_shader_create(), GPU_texture_convert_pixels(), handle_app1(), GHOST_SystemCocoa::handleKeyEvent(), STR_HashedString::hash(), InputCustomRatio(), insert_key_button_exec(), RAS_MeshSlot::Join(), AUD_SoftwareDevice::mix(), nlastrip_get_frame_transition(), p_smooth(), paint_space_stroke(), PE_apply_lengths(), pe_iterate_lengths(), peekBucket(), peekPoint(), AUD_OpenALDevice::play(), PolarDecompose(), btSoftColliders::CollideVF_SS::Process(), btConnectivityProcessor::processTriangle(), gjkepa2_impl::GJK::projectorigin(), psys_thread_create_path(), PyC_AsArray(), Quaternion_rotate(), AUD_SilenceReader::read(), AUD_LoopReader::read(), AUD_ReverseReader::read(), AUD_DelayReader::read(), AUD_BufferReader::read(), AUD_SuperposeReader::read(), AUD_ChannelMapperReader::read(), AUD_SinusReader::read(), AUD_DoubleReader::read(), AUD_LinearResampleReader::read(), AUD_BandPassReader::read(), AUD_SequencerReader::read(), AUD_SRCResampleReader::read(), AUD_BaseIIRFilterReader::read(), AUD_SndFileReader::read(), ReadData(), render_new_particle_system(), retargetArctoArcLength(), RNA_def_float_matrix(), RNA_def_property_array(), rna_iterator_array_begin(), RNA_parameter_length_set_data(), RNA_property_collection_length(), RNA_property_string_get_alloc(), RNA_property_string_get_default_alloc(), BSP_CSGMesh::SC_Face(), AUD_OpenALDevice::seek(), setIteratorValues(), SG_Tree::SetLeft(), SG_Tree::SetRight(), IK_QSegment::SetTransform(), SG_Tree::SG_Tree(), btGjkEpaSolver2::SignedDistance(), sk_addStrokeSnapPoint(), sk_drawEdge(), btKinematicCharacterController::stepForwardAndStrafe(), STR_gHash(), txt_copy_selected(), txt_sel_to_buf(), txt_to_buf(), txt_undo_add_block(), ui_but_menu(), BL_ShapeActionActuator::Update(), BL_ActionActuator::Update(), KX_ConstraintActuator::Update(), KX_BoneParentRelation::UpdateChildCoordinates(), btSoftBody::updateConstants(), AUD_OpenALDevice::updateStreams(), and WriteData().
| SIMD_FORCE_INLINE btQuaternion operator* | ( | const btQuaternion & | q1, |
| const btQuaternion & | q2 | ||
| ) |
Return the product of two quaternions.
Definition at line 329 of file btQuaternion.h.
| SIMD_FORCE_INLINE btQuaternion operator* | ( | const btQuaternion & | q, |
| const btVector3 & | w | ||
| ) |
Definition at line 337 of file btQuaternion.h.
| SIMD_FORCE_INLINE btQuaternion operator* | ( | const btVector3 & | w, |
| const btQuaternion & | q | ||
| ) |
Definition at line 346 of file btQuaternion.h.
| SIMD_FORCE_INLINE btQuaternion operator- | ( | const btQuaternion & | q | ) |
Return the negative of a quaternion.
Definition at line 320 of file btQuaternion.h.
| SIMD_FORCE_INLINE btVector3 quatRotate | ( | const btQuaternion & | rotation, |
| const btVector3 & | v | ||
| ) |
Definition at line 395 of file btQuaternion.h.
References btQuaternion::inverse().
Referenced by ATTRIBUTE_ALIGNED16(), btAdjustInternalEdgeContacts(), btConeTwistConstraint::calcAngleInfo(), btConeTwistConstraint::calcAngleInfo2(), btConeTwistConstraint::GetPointForAngle(), btConnectivityProcessor::processTriangle(), and btConeTwistConstraint::setMotorTargetInConstraintSpace().
| SIMD_FORCE_INLINE btQuaternion shortestArcQuat | ( | const btVector3 & | v0, |
| const btVector3 & | v1 | ||
| ) |
Definition at line 403 of file btQuaternion.h.
References btPlaneSpace1(), btSqrt(), simple_enum_gen::d, and SIMD_EPSILON.
Referenced by ATTRIBUTE_ALIGNED16(), btConeTwistConstraint::calcAngleInfo(), btConeTwistConstraint::calcAngleInfo2(), btConeTwistConstraint::setMotorTargetInConstraintSpace(), and shortestArcQuatNormalize2().
| SIMD_FORCE_INLINE btQuaternion shortestArcQuatNormalize2 | ( | btVector3 & | v0, |
| btVector3 & | v1 | ||
| ) |
Definition at line 422 of file btQuaternion.h.
References btQuaternion::normalize(), and shortestArcQuat().
| 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 389 of file btQuaternion.h.
References btQuaternion::slerp().