Home
last modified time | relevance | path

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

/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DQuaternion.java23 public class Quaternion { class
33 public void clone(Quaternion src) { in clone()
81 public Quaternion(double x0, double x1, double x2, double x3) { in Quaternion() method in Quaternion
88 public Quaternion conjugate() { in conjugate()
89 return new Quaternion(x[0], -x[1], -x[2], -x[3]); in conjugate()
92 public Quaternion plus(Quaternion b) { in plus()
93 Quaternion a = this; in plus()
94 return new Quaternion(a.x[0] + b.x[0], a.x[1] + b.x[1], a.x[2] + b.x[2], a.x[3] + b.x[3]); in plus()
97 public Quaternion times(Quaternion b) { in times()
98 Quaternion a = this; in times()
[all …]
DViewMatrix.java37 private Quaternion mQ = new Quaternion(0, 0, 0, 0);
328 double angle = Quaternion.calcAngle(mStartV, mMoveToV); in trackBallMove()
333 double[] axis = Quaternion.calcAxis(mStartV, mMoveToV); in trackBallMove()
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
Dpose.h18 : rotation_(Eigen::Quaternion<T>::Identity()), in Pose()
25 Pose(Eigen::Quaternion<T> rotation, Eigen::Vector3<T> position) in Pose()
69 Eigen::Quaternion<T> GetRotation() const { return rotation_; } in GetRotation()
75 void SetRotation(Eigen::Quaternion<T> rotation) { rotation_ = rotation; } in SetRotation()
90 Eigen::Quaternion<T> rotation_;
/frameworks/opt/gamesdk/samples/tuningfork/tftestapp/app/src/main/cpp/
DScene.h50 struct Quaternion { struct
51 Quaternion(GLfloat x, GLfloat y, GLfloat z, GLfloat w) : x(x), y(y), z(z), w(w) {} in Quaternion() function
64 Quaternion rot; argument
71 …const Vector3& pos = {0,0,0}, const Quaternion& rot = {0,0,0,1}, const Vector3& velocity = {0,0,0}…
DScene.cpp162 …vpMatrix, std::array<GLfloat, 9>& normalMatrix, GLfloat aspectRatio, Vector3 pos, Quaternion rot) { in getMatrices()
333 void normalize(Quaternion& q) { in normalize()
340 void update(Quaternion& rot, const Vector3& angular_velocity, float dt) { in update()
342 Quaternion q = { angular_velocity.x*rot.w + angular_velocity.y*rot.z - angular_velocity.z*rot.y, in update()
/frameworks/rs/script_api/include/
Drs_quaternion.rsh20 * rs_quaternion.rsh: Quaternion Functions
35 * rhs: Quaternion to add.
53 * q: Quaternion to modify.
117 * rsQuaternionLoadRotateUnit: Quaternion that represents a rotation about an arbitrary unit vector
208 * q: Quaternion to normalize.
233 * rhs: Quaternion to multiply the destination quaternion by.
Drs_value_types.rsh535 * rs_quaternion: Quaternion
539 * See Quaternion Functions.
/frameworks/rs/script_api/
Drs_quaternion.spec18 summary: Quaternion Functions
107 summary: Quaternion that represents a rotation about an arbitrary unit vector
/frameworks/native/libs/vr/libdvrcommon/tests/
Dpose_test.cpp14 using quat_t = Eigen::Quaternion<FT>;