Home
last modified time | relevance | path

Searched refs:Quaternion (Results 1 – 25 of 133) sorted by relevance

123456

/external/eigen/Eigen/src/Eigen2Support/Geometry/
DQuaternion.h41 template<typename _Scalar> struct ei_traits<Quaternion<_Scalar> >
47 class Quaternion : public RotationBase<Quaternion<_Scalar>,3>
49 typedef RotationBase<Quaternion<_Scalar>,3> Base;
99 inline Quaternion() {}
108 inline Quaternion(Scalar w, Scalar x, Scalar y, Scalar z)
112 inline Quaternion(const Quaternion& other) { m_coeffs = other.m_coeffs; }
115 explicit inline Quaternion(const AngleAxisType& aa) { *this = aa; }
123 explicit inline Quaternion(const MatrixBase<Derived>& other) { *this = other; }
125 Quaternion& operator=(const Quaternion& other);
126 Quaternion& operator=(const AngleAxisType& aa);
[all …]
/external/eigen/Eigen/src/Geometry/
DQuaternion.h105 static inline Quaternion<Scalar> Identity() { return Quaternion<Scalar>(1, 0, 0, 0); } in Identity()
126 inline Quaternion<Scalar> normalized() const { return Quaternion<Scalar>(coeffs().normalized()); } in normalized()
144 …template<class OtherDerived> EIGEN_STRONG_INLINE Quaternion<Scalar> operator* (const QuaternionBas…
148 Quaternion<Scalar> inverse() const;
151 Quaternion<Scalar> conjugate() const;
153 …template<class OtherDerived> Quaternion<Scalar> slerp(const Scalar& t, const QuaternionBase<OtherD…
172 inline typename internal::cast_return_type<Derived,Quaternion<NewScalarType> >::type cast() const in cast()
174 return typename internal::cast_return_type<Derived,Quaternion<NewScalarType> >::type(derived()); in cast()
213 struct traits<Quaternion<_Scalar,_Options> >
215 typedef Quaternion<_Scalar,_Options> PlainObject;
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/math/
DQuaternion.java54 public final class Quaternion implements Savable, Cloneable, java.io.Serializable { class
58 private static final Logger logger = Logger.getLogger(Quaternion.class.getName());
62 public static final Quaternion IDENTITY = new Quaternion();
63 public static final Quaternion DIRECTION_Z = new Quaternion();
64 public static final Quaternion ZERO = new Quaternion(0, 0, 0, 0);
76 public Quaternion() { in Quaternion() method in Quaternion
96 public Quaternion(float x, float y, float z, float w) { in Quaternion() method in Quaternion
133 public Quaternion set(float x, float y, float z, float w) { in set()
150 public Quaternion set(Quaternion q) { in set()
166 public Quaternion(float[] angles) { in Quaternion() method in Quaternion
[all …]
DTransform.java51 private Quaternion rot = new Quaternion();
55 public Transform(Vector3f translation, Quaternion rot){ in Transform()
60 public Transform(Vector3f translation, Quaternion rot, Vector3f scale){ in Transform()
66 this(translation, Quaternion.IDENTITY); in Transform()
69 public Transform(Quaternion rot){ in Transform()
74 this(Vector3f.ZERO, Quaternion.IDENTITY); in Transform()
82 public Transform setRotation(Quaternion rot) { in setRotation()
151 public Quaternion getRotation(Quaternion quat) { in getRotation()
152 if (quat==null) quat=new Quaternion(); in getRotation()
161 public Quaternion getRotation() { in getRotation()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/animation/
DBone.java67 private Quaternion initialRot;
74 private Quaternion worldBindInverseRot;
80 private Quaternion localRot = new Quaternion();
86 private Quaternion worldRot = new Quaternion();
103 initialRot = new Quaternion(); in Bone()
107 worldBindInverseRot = new Quaternion(); in Bone()
187 public Quaternion getLocalRotation() { in getLocalRotation()
214 public Quaternion getModelSpaceRotation() { in getModelSpaceRotation()
247 public Quaternion getWorldBindInverseRotation() { in getWorldBindInverseRotation()
283 public Quaternion getWorldBindRotation() { in getWorldBindRotation()
[all …]
DCompactQuaternionArray.java35 import com.jme3.math.Quaternion;
43 public class CompactQuaternionArray extends CompactArray<Quaternion> implements Savable {
66 protected final Class<Quaternion> getElementClass() { in getElementClass()
67 return Quaternion.class; in getElementClass()
86 protected void serialize(int i, Quaternion store) { in serialize()
95 protected Quaternion deserialize(int i, Quaternion store) { in deserialize()
DBoneTrack.java35 import com.jme3.math.Quaternion;
74 …public BoneTrack(int targetBoneIndex, float[] times, Vector3f[] translations, Quaternion[] rotatio… in BoneTrack()
87 …public BoneTrack(int targetBoneIndex, float[] times, Vector3f[] translations, Quaternion[] rotatio… in BoneTrack()
111 public Quaternion[] getRotations() { in getRotations()
145 public void setKeyframes(float[] times, Vector3f[] translations, Quaternion[] rotations) { in setKeyframes()
168 …public void setKeyframes(float[] times, Vector3f[] translations, Quaternion[] rotations, Vector3f[… in setKeyframes()
200 Quaternion tempQ = vars.quat1; in setTime()
203 Quaternion tempQ2 = vars.quat2; in setTime()
270 Quaternion[] sourceRotations = this.getRotations(); in clone()
274 Quaternion[] rotations = new Quaternion[tablesLength]; in clone()
[all …]
DAnimationFactory.java35 import com.jme3.math.Quaternion;
78 Quaternion rotation = new Quaternion();
92 void set(Quaternion rot) { in set()
136 protected Quaternion[] rotations;
171 rotations = new Quaternion[totalFrames]; in AnimationFactory()
229 public void addTimeRotation(float time, Quaternion rotation) { in addTimeRotation()
241 public void addKeyFrameRotation(int keyFrameIndex, Quaternion rotation) { in addKeyFrameRotation()
433 Quaternion rot = new Quaternion(); in interpolate()
452 … rotations[j] = ((Quaternion) ((Rotation) keyFrames[i]).rotation).clone(); in interpolate()
DSpatialTrack.java7 import com.jme3.math.Quaternion;
57 Quaternion[] rotations, Vector3f[] scales) { in SpatialTrack()
73 Quaternion tempQ = vars.quat1; in setTime()
76 Quaternion tempQ2 = vars.quat2; in setTime()
147 Quaternion[] rotations, Vector3f[] scales) { in setKeyframes()
176 public Quaternion[] getRotations() { in getRotations()
218Quaternion[] rotationsCopy = this.getRotations() == null ? null : Arrays.copyOf(this.getRotations(… in clone()
/external/jmonkeyengine/engine/src/core/com/jme3/cinematic/events/
DRotationTrack.java14 import com.jme3.math.Quaternion;
30 private Quaternion startRotation = new Quaternion();
31 private Quaternion endRotation = new Quaternion();
51 public RotationTrack(Spatial spatial, Quaternion endRotation) { in RotationTrack()
57 …public RotationTrack(Spatial spatial, Quaternion endRotation, float initialDuration, LoopMode loop… in RotationTrack()
64 public RotationTrack(Spatial spatial, Quaternion endRotation, LoopMode loopMode) { in RotationTrack()
71 public RotationTrack(Spatial spatial, Quaternion endRotation, float initialDuration) { in RotationTrack()
94 Quaternion q = vars.quat1; in onUpdate()
124 endRotation = (Quaternion) ic.readSavable("endRotation", null); in read()
DMotionTrack.java43 import com.jme3.math.Quaternion;
68 protected Quaternion rotation;
202 oc.write(rotation, "rotation", Quaternion.IDENTITY); in write()
213 rotation = (Quaternion) in.readSavable("rotation", Quaternion.IDENTITY); in read()
229 Quaternion q = new Quaternion(); in computeTargetDirection()
240 Quaternion q2 = new Quaternion(); in computeTargetDirection()
379 public Quaternion getRotation() { in getRotation()
390 public void setRotation(Quaternion rotation) { in setRotation()
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/objects/infos/
DRigidBodyMotionState.java36 import com.jme3.math.Quaternion;
51 private Quaternion worldRotationQuat = new Quaternion();
52 private Quaternion tmp_inverseWorldRotation = new Quaternion();
70 Quaternion localRotationQuat = spatial.getLocalRotation(); in applyTransform()
97 …private synchronized native boolean applyTransform(long stateId, Vector3f location, Quaternion rot… in applyTransform()
122 public Quaternion getWorldRotationQuat() { in getWorldRotationQuat()
127 private native void getWorldRotationQuat(long stateId, Quaternion vec); in getWorldRotationQuat()
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/objects/
DPhysicsGhostObject.java41 import com.jme3.math.Quaternion;
61 protected final Quaternion tmp_inverseWorldRotation = new Quaternion();
130 public void setPhysicsRotation(Quaternion rotation) { in setPhysicsRotation()
134 private native void setPhysicsRotation(long objectId, Quaternion rotation); in setPhysicsRotation()
152 public Quaternion getPhysicsRotation(Quaternion rot) { in getPhysicsRotation()
154 rot = new Quaternion(); in getPhysicsRotation()
160 private native void getPhysicsRotation(long objectId, Quaternion rot); in getPhysicsRotation()
187 public Quaternion getPhysicsRotation() { in getPhysicsRotation()
188 Quaternion quat = new Quaternion(); in getPhysicsRotation()
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/objects/infos/
DRigidBodyMotionState.java39 import com.jme3.math.Quaternion;
54 private Quaternion worldRotationQuat = new Quaternion();
56 private Quaternion localRotationQuat = new Quaternion();
61 private Quaternion tmp_inverseWorldRotation = new Quaternion();
144 public Quaternion getWorldRotationQuat() { in getWorldRotationQuat()
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/constraints/
DConstraintRotLike.java4 import com.jme3.math.Quaternion;
56 Quaternion targetRotation = targetTransform.getRotation(); in bakeConstraint()
60 Quaternion[] rotations = track.getRotations(); in bakeConstraint()
74 Quaternion ownerRotation = ownerTransform.getRotation(); in bakeConstraint()
80 …private void rotLike(Quaternion ownerRotation, float[] ownerAngles, float[] targetAngles, float in… in rotLike()
81 Quaternion startRotation = ownerRotation.clone(); in rotLike()
82 Quaternion offset = Quaternion.IDENTITY; in rotLike()
/external/jmonkeyengine/engine/src/bullet-native/
DjmeClasses.cpp57 jclass jmeClasses::Quaternion; member in jmeClasses
151 Quaternion = (jclass)env->NewGlobalRef(env->FindClass("com/jme3/math/Quaternion")); in initJavaClasses()
156 Quaternion_set = env->GetMethodID(Quaternion, "set", "(FFFF)Lcom/jme3/math/Quaternion;"); in initJavaClasses()
157 Quaternion_getW = env->GetMethodID(Quaternion, "getW", "()F"); in initJavaClasses()
158 Quaternion_getX = env->GetMethodID(Quaternion, "getX", "()F"); in initJavaClasses()
159 Quaternion_getY = env->GetMethodID(Quaternion, "getY", "()F"); in initJavaClasses()
160 Quaternion_getZ = env->GetMethodID(Quaternion, "getZ", "()F"); in initJavaClasses()
161 Quaternion_x = env->GetFieldID(Quaternion, "x", "F"); in initJavaClasses()
162 Quaternion_y = env->GetFieldID(Quaternion, "y", "F"); in initJavaClasses()
163 Quaternion_z = env->GetFieldID(Quaternion, "z", "F"); in initJavaClasses()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/audio/
DListener.java35 import com.jme3.math.Quaternion;
42 private Quaternion rotation;
49 rotation = new Quaternion(); in Listener()
77 public Quaternion getRotation() { in getRotation()
103 public void setRotation(Quaternion rotation) { in setRotation()
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/objects/
DPhysicsGhostObject.java45 import com.jme3.math.Quaternion;
65 protected final Quaternion tmp_inverseWorldRotation = new Quaternion();
127 public void setPhysicsRotation(Quaternion rotation) { in setPhysicsRotation()
155 public Quaternion getPhysicsRotation(Quaternion rot) { in getPhysicsRotation()
157 rot = new Quaternion(); in getPhysicsRotation()
188 public Quaternion getPhysicsRotation() { in getPhysicsRotation()
/external/jmonkeyengine/engine/src/test/jme3test/model/anim/
DTestCustomAnim.java41 import com.jme3.math.Quaternion;
57 private Quaternion rotation = new Quaternion();
93 bone.setBindTransforms(Vector3f.ZERO, Quaternion.IDENTITY, Vector3f.UNIT_XYZ); in simpleInitApp()
131 Quaternion rotate = new Quaternion(); in simpleUpdate()
DTestOgreComplexAnim.java44 import com.jme3.math.Quaternion;
65 cam.setRotation(new Quaternion(-0.060740203f, 0.93925786f, -0.2398315f, -0.2378785f)); in simpleInitApp()
130 Quaternion q = new Quaternion(); in simpleUpdate()
137 … b2.setUserTransforms(Vector3f.ZERO, Quaternion.IDENTITY, new Vector3f(1+angle,1+ angle, 1+angle)); in simpleUpdate()
/external/jmonkeyengine/engine/src/test/jme3test/renderer/
DTestMultiViews.java37 import com.jme3.math.Quaternion;
66 cam.setRotation(new Quaternion(-0.07680723f, 0.92299235f, -0.2564353f, -0.27645364f)); in simpleInitApp()
72 cam2.setRotation(new Quaternion(0.0010108891f, 0.99857414f, -0.04928594f, 0.020481428f)); in simpleInitApp()
82 cam3.setRotation(new Quaternion(0.004381671f, 0.72363687f, -0.69015175f, 0.0045953835f)); in simpleInitApp()
92 cam4.setRotation(new Quaternion(0.02356979f, -0.74957186f, 0.026729556f, 0.66096294f)); in simpleInitApp()
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/animations/
DCalculationBone.java5 import com.jme3.math.Quaternion;
22 private Quaternion startRotation;
26 private Quaternion[] rotations;
37 this.rotations = new Quaternion[boneFramesCount]; in CalculationBone()
98 public Spatial rotate(Quaternion rot, int frame) { in rotate()
/external/jmonkeyengine/engine/src/bullet-common/com/jme3/bullet/control/
DKinematicRagdollControl.java53 import com.jme3.math.Quaternion;
117 protected Quaternion modelRotation = new Quaternion();
131 protected Quaternion initalWorldRotation;
134 protected Quaternion startBlendingRot = new Quaternion();
163 Quaternion tmpRot1 = vars.quat1; in update()
164 Quaternion tmpRot2 = vars.quat2; in update()
178 Quaternion q = link.rigidBody.getMotionState().getWorldRotationQuat(); in update()
272 …private void matchPhysicObjectToBone(PhysicsBoneLink link, Vector3f position, Quaternion tmpRot1) { in matchPhysicObjectToBone()
311 Quaternion initRotation = model.getLocalRotation().clone(); in setSpatial()
316 model.setLocalRotation(Quaternion.IDENTITY); in setSpatial()
[all …]
/external/eigen/test/
Dgeo_quaternion.cpp53 typedef Quaternion<Scalar,Options> Quaternionx; in quaternion()
145 Quaternion<float> q1f = q1.template cast<float>(); in quaternion()
147 Quaternion<double> q1d = q1.template cast<double>(); in quaternion()
172 typedef Map<Quaternion<Scalar>, Aligned> MQuaternionA; in mapQuaternion()
173 typedef Map<const Quaternion<Scalar>, Aligned> MCQuaternionA; in mapQuaternion()
174 typedef Map<Quaternion<Scalar> > MQuaternionUA; in mapQuaternion()
175 typedef Map<const Quaternion<Scalar> > MCQuaternionUA; in mapQuaternion()
176 typedef Quaternion<Scalar> Quaternionx; in mapQuaternion()
232 typedef Quaternion<Scalar,AutoAlign> QuaternionA; in quaternionAlignment()
233 typedef Quaternion<Scalar,DontAlign> QuaternionUA; in quaternionAlignment()
/external/jmonkeyengine/engine/src/test/jme3test/post/
DTestMultiViewsFilters.java40 import com.jme3.math.Quaternion;
74 cam.setRotation(new Quaternion(-0.07680723f, 0.92299235f, -0.2564353f, -0.27645364f)); in simpleInitApp()
80 cam2.setRotation(new Quaternion(0.0010108891f, 0.99857414f, -0.04928594f, 0.020481428f)); in simpleInitApp()
91 cam3.setRotation(new Quaternion(0.004381671f, 0.72363687f, -0.69015175f, 0.0045953835f)); in simpleInitApp()
104 cam4.setRotation(new Quaternion(0.02356979f, -0.74957186f, 0.026729556f, 0.66096294f)); in simpleInitApp()
121 cam5.setRotation(new Quaternion(0.004381671f, 0.72363687f, -0.69015175f, 0.0045953835f)); in simpleInitApp()

123456