Adding ViroKit. Needs AWSCore :(

This commit is contained in:
John Lyon-Smith
2018-03-27 17:46:15 -07:00
parent 2ab15e7dc1
commit 02e06dface
844 changed files with 86921 additions and 21 deletions

View File

@@ -0,0 +1,63 @@
//
// VROHitTestResult.h
// ViroRenderer
//
// Created by Raj Advani on 1/13/16.
// Copyright © 2016 Viro Media. All rights reserved.
//
#ifndef VROHitTestResult_h
#define VROHitTestResult_h
#include "VROVector3f.h"
#include "VROCamera.h"
#include <memory>
class VRONode;
class VROHitTestResult {
public:
VROHitTestResult(std::shared_ptr<VRONode> node, VROVector3f location, float distance, bool background,
const VROCamera &camera) :
_node(node),
_location(location),
_distance(distance),
_background(background),
_camera(camera)
{}
~VROHitTestResult() {}
std::shared_ptr<VRONode> getNode() const {
return _node;
}
VROVector3f getLocation() const {
return _location;
}
float getDistance() const {
return _distance;
}
bool isBackgroundHit() const {
return _background;
}
const VROCamera &getCamera() const {
return _camera;
}
private:
std::shared_ptr<VRONode> _node;
VROVector3f _location;
float _distance;
bool _background;
VROCamera _camera;
};
#endif /* VROHitTestResult_h */