blob: cbf553f7b6932d925d1223fc790a76cbc9f6e95e [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_VR_POSE_UTIL_H_
#define CHROME_BROWSER_VR_POSE_UTIL_H_
#include "chrome/browser/vr/vr_base_export.h"
#include "ui/gfx/geometry/vector3d_f.h"
namespace gfx {
class Transform;
}
namespace vr {
// Provides the direction the head is looking towards as a 3x1 unit vector.
VR_BASE_EXPORT gfx::Vector3dF GetForwardVector(const gfx::Transform& head_pose);
// Returns a vector heading upward from the viewer's head.
VR_BASE_EXPORT gfx::Vector3dF GetUpVector(const gfx::Transform& head_pose);
} // namespace vr
#endif // CHROME_BROWSER_VR_POSE_UTIL_H_