OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_MATH_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_MATH_H_ |
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_MATH_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_MATH_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/g
vr_types.h" | 10 #include "third_party/gvr-android-sdk/src/ndk/include/vr/gvr/capi/include/gvr_ty
pes.h" |
11 | 11 |
12 namespace vr_shell { | 12 namespace vr_shell { |
13 | 13 |
14 // 2D rectangles. Unlike gvr::Rectf and gvr::Recti, these have width and height | 14 // 2D rectangles. Unlike gvr::Rectf and gvr::Recti, these have width and height |
15 // rather than right and top. | 15 // rather than right and top. |
16 typedef struct Recti { | 16 typedef struct Recti { |
17 int x; | 17 int x; |
18 int y; | 18 int y; |
19 int width; | 19 int width; |
20 int height; | 20 int height; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 81 |
82 gvr::Quatf QuatFromAxisAngle(float x, float y, float z, float angle); | 82 gvr::Quatf QuatFromAxisAngle(float x, float y, float z, float angle); |
83 | 83 |
84 gvr::Vec3f GetRayPoint(const gvr::Vec3f& rayOrigin, | 84 gvr::Vec3f GetRayPoint(const gvr::Vec3f& rayOrigin, |
85 const gvr::Vec3f& rayVector, | 85 const gvr::Vec3f& rayVector, |
86 float scale); | 86 float scale); |
87 | 87 |
88 } // namespace vr_shell | 88 } // namespace vr_shell |
89 | 89 |
90 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_MATH_H_ | 90 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_MATH_H_ |
OLD | NEW |