Adding ViroKit. Needs AWSCore :(
This commit is contained in:
63
mobile/ios/ViroKit.framework/Headers/VROHitTestResult.h
Normal file
63
mobile/ios/ViroKit.framework/Headers/VROHitTestResult.h
Normal 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 */
|
||||
Reference in New Issue
Block a user