/external/eigen/Eigen/src/Eigen2Support/Geometry/ |
Quaternion.h | 21 * \class Quaternion 23 * \brief The quaternion class used to represent 3D orientations and rotations 27 * This class represents a quaternion \f$ w+xi+yj+zk \f$ that is a convenient representation of 41 template<typename _Scalar> struct ei_traits<Quaternion<_Scalar> > 47 class Quaternion : public RotationBase<Quaternion<_Scalar>,3> 49 typedef RotationBase<Quaternion<_Scalar>,3> Base; 98 /** Default constructor leaving the quaternion uninitialized. */ 99 inline Quaternion() {} 101 /** Constructs and initializes the quaternion \f$ w+xi+yj+zk \f$ fro [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/animation/ |
CompactQuaternionArray.java | 35 import com.jme3.math.Quaternion;
39 * Serialize and compress {@link Quaternion}[] by indexing same values
43 public class CompactQuaternionArray extends CompactArray<Quaternion> implements Savable {
46 * creates a compact Quaternion array
52 * creates a compact Quaternion array
66 protected final Class<Quaternion> getElementClass() {
67 return Quaternion.class;
86 protected void serialize(int i, Quaternion store) {
95 protected Quaternion deserialize(int i, Quaternion store) { [all...] |
Bone.java | 67 private Quaternion initialRot; 74 private Quaternion worldBindInverseRot; 80 private Quaternion localRot = new Quaternion(); 86 private Quaternion worldRot = new Quaternion(); 103 initialRot = new Quaternion(); 107 worldBindInverseRot = new Quaternion(); 187 public Quaternion getLocalRotation() { 214 public Quaternion getModelSpaceRotation() [all...] |
BoneTrack.java | 35 import com.jme3.math.Quaternion; 74 public BoneTrack(int targetBoneIndex, float[] times, Vector3f[] translations, Quaternion[] rotations) { 87 public BoneTrack(int targetBoneIndex, float[] times, Vector3f[] translations, Quaternion[] rotations, Vector3f[] scales) { 111 public Quaternion[] getRotations() { 145 public void setKeyframes(float[] times, Vector3f[] translations, Quaternion[] rotations) { 168 public void setKeyframes(float[] times, Vector3f[] translations, Quaternion[] rotations, Vector3f[] scales) { 200 Quaternion tempQ = vars.quat1; 203 Quaternion tempQ2 = vars.quat2; 270 Quaternion[] sourceRotations = this.getRotations(); 274 Quaternion[] rotations = new Quaternion[tablesLength] [all...] |
AnimationFactory.java | 35 import com.jme3.math.Quaternion; 76 * The rotation Quaternion 78 Quaternion rotation = new Quaternion(); 92 void set(Quaternion rot) { 136 protected Quaternion[] rotations; 171 rotations = new Quaternion[totalFrames]; 226 * @param rotation the rotation Quaternion to use for this keyFrame 229 public void addTimeRotation(float time, Quaternion rotation) { 238 * @param rotation the rotation Quaternion to use for this keyFram [all...] |
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/objects/infos/ |
RigidBodyMotionState.java | 36 import com.jme3.math.Quaternion; 51 private Quaternion worldRotationQuat = new Quaternion(); 52 private Quaternion tmp_inverseWorldRotation = new Quaternion(); 70 Quaternion localRotationQuat = spatial.getLocalRotation(); 97 private synchronized native boolean applyTransform(long stateId, Vector3f location, Quaternion rotation); 122 public Quaternion getWorldRotationQuat() { 127 private native void getWorldRotationQuat(long stateId, Quaternion vec);
|
/external/jmonkeyengine/engine/src/core/com/jme3/audio/ |
Listener.java | 35 import com.jme3.math.Quaternion; 42 private Quaternion rotation; 49 rotation = new Quaternion(); 77 public Quaternion getRotation() { 103 public void setRotation(Quaternion rotation) {
|
/external/ceres-solver/internal/ceres/ |
jet_quaternion_integration_test.cc | 32 // theory, the unittests for the quaternion class should be type parameterized 33 // to make for easier testing of instantiations of the quaternion class, but it 40 #include "util/math/quaternion.h" 50 // quaternion elements are derivative parameters. 70 Quaternion<J> a, b; 73 Quaternion<double> double_a, double_b; 78 Quaternion<J> c = a * b; 79 Quaternion<double> double_c = double_a * double_b; 89 Quaternion<J> c = Quaternion<J>::Slerp(a, b, fraction) [all...] |
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/objects/infos/ |
RigidBodyMotionState.java | 39 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() { 184 // public synchronized void setWorldTransform(Vector3f location, Quaternion rotation) {
|
/external/jmonkeyengine/engine/src/core/com/jme3/cinematic/events/ |
RotationTrack.java | 14 import com.jme3.math.Quaternion; 30 private Quaternion startRotation = new Quaternion(); 31 private Quaternion endRotation = new Quaternion(); 51 public RotationTrack(Spatial spatial, Quaternion endRotation) { 57 public RotationTrack(Spatial spatial, Quaternion endRotation, float initialDuration, LoopMode loopMode) { 64 public RotationTrack(Spatial spatial, Quaternion endRotation, LoopMode loopMode) { 71 public RotationTrack(Spatial spatial, Quaternion endRotation, float initialDuration) { 94 Quaternion q = vars.quat1 [all...] |
MotionTrack.java | 43 import com.jme3.math.Quaternion; 68 protected Quaternion rotation; 202 oc.write(rotation, "rotation", Quaternion.IDENTITY); 213 rotation = (Quaternion) in.readSavable("rotation", Quaternion.IDENTITY); 229 Quaternion q = new Quaternion(); 240 Quaternion q2 = new Quaternion(); 377 * @return the rotation quaternion [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
Quaternion.java | 43 * <code>Quaternion</code> defines a single example of a more general class of
48 * <code>Quaternion</code> is defined by four floating point numbers: {x y z
54 public final class Quaternion implements Savable, Cloneable, java.io.Serializable {
58 private static final Logger logger = Logger.getLogger(Quaternion.class.getName());
60 * Represents the identity quaternion rotation (0, 0, 0, 1).
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); [all...] |
Transform.java | 51 private Quaternion rot = new Quaternion(); 55 public Transform(Vector3f translation, Quaternion rot){ 60 public Transform(Vector3f translation, Quaternion rot, Vector3f scale){ 66 this(translation, Quaternion.IDENTITY); 69 public Transform(Quaternion rot){ 74 this(Vector3f.ZERO, Quaternion.IDENTITY); 78 * Sets this rotation to the given Quaternion value. 82 public Transform setRotation(Quaternion rot) { 146 * Stores this rotation value into the given Quaternion. If quat is null, a new Quaternion is created t [all...] |
/external/eigen/Eigen/src/Geometry/ |
Quaternion.h | 30 * \brief Base class for quaternion expressions 32 * \sa class Quaternion 102 /** \returns a quaternion representing an identity rotation 105 static inline Quaternion<Scalar> Identity() { return Quaternion<Scalar>(1, 0, 0, 0); } 111 /** \returns the squared norm of the quaternion's coefficients 116 /** \returns the norm of the quaternion's coefficients 121 /** Normalizes the quaternion \c *this 126 inline Quaternion<Scalar> normalized() const { return Quaternion<Scalar>(coeffs().normalized()); [all...] |
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/constraints/ |
ConstraintRotLike.java | 4 import com.jme3.math.Quaternion;
56 Quaternion targetRotation = targetTransform.getRotation();
60 Quaternion[] rotations = track.getRotations();
74 Quaternion ownerRotation = ownerTransform.getRotation();
80 private void rotLike(Quaternion ownerRotation, float[] ownerAngles, float[] targetAngles, float influence) {
81 Quaternion startRotation = ownerRotation.clone();
82 Quaternion offset = Quaternion.IDENTITY;
|
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/objects/ |
PhysicsGhostObject.java | 41 import com.jme3.math.Quaternion; 61 protected final Quaternion tmp_inverseWorldRotation = new Quaternion(); 130 public void setPhysicsRotation(Quaternion rotation) { 134 private native void setPhysicsRotation(long objectId, Quaternion rotation); 152 public Quaternion getPhysicsRotation(Quaternion rot) { 154 rot = new Quaternion(); 160 private native void getPhysicsRotation(long objectId, Quaternion rot); 187 public Quaternion getPhysicsRotation() [all...] |
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/animations/ |
CalculationBone.java | 5 import com.jme3.math.Quaternion;
22 private Quaternion startRotation;
26 private Quaternion[] rotations;
37 this.rotations = new Quaternion[boneFramesCount];
98 public Spatial rotate(Quaternion rot, int frame) {
|
/external/jmonkeyengine/engine/src/test/jme3test/renderer/ |
TestMultiViews.java | 37 import com.jme3.math.Quaternion; 66 cam.setRotation(new Quaternion(-0.07680723f, 0.92299235f, -0.2564353f, -0.27645364f)); 72 cam2.setRotation(new Quaternion(0.0010108891f, 0.99857414f, -0.04928594f, 0.020481428f)); 82 cam3.setRotation(new Quaternion(0.004381671f, 0.72363687f, -0.69015175f, 0.0045953835f)); 92 cam4.setRotation(new Quaternion(0.02356979f, -0.74957186f, 0.026729556f, 0.66096294f));
|
/external/jmonkeyengine/engine/src/bullet-native/ |
jmeClasses.cpp | 57 jclass jmeClasses::Quaternion; 151 Quaternion = (jclass)env->NewGlobalRef(env->FindClass("com/jme3/math/Quaternion")); 156 Quaternion_set = env->GetMethodID(Quaternion, "set", "(FFFF)Lcom/jme3/math/Quaternion;"); 157 Quaternion_getW = env->GetMethodID(Quaternion, "getW", "()F"); 158 Quaternion_getX = env->GetMethodID(Quaternion, "getX", "()F"); 159 Quaternion_getY = env->GetMethodID(Quaternion, "getY", "()F"); 160 Quaternion_getZ = env->GetMethodID(Quaternion, "getZ", "()F"); 161 Quaternion_x = env->GetFieldID(Quaternion, "x", "F") [all...] |
/external/jmonkeyengine/engine/src/test/jme3test/model/anim/ |
TestCustomAnim.java | 41 import com.jme3.math.Quaternion; 57 private Quaternion rotation = new Quaternion(); 93 bone.setBindTransforms(Vector3f.ZERO, Quaternion.IDENTITY, Vector3f.UNIT_XYZ); 131 Quaternion rotate = new Quaternion();
|
TestSpatialAnim.java | 9 import com.jme3.math.Quaternion;
59 Quaternion[] rotations = new Quaternion[totalFrames];
66 rotations[i] = Quaternion.IDENTITY;
|