mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-23 08:29:24 +08:00
40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
// XRRay对象
|
|
|
|
XRRay = function XRRay() {
|
|
bodavm.toolsFunc.symbolProperty(this);
|
|
if (arg != 'bobo') {
|
|
console.log_copy('XRRay 实例化对象 --->', JSON.stringify_bo(arguments, function (k, v) {
|
|
if (v == window) {
|
|
return 'window';
|
|
} else {
|
|
return v;
|
|
}
|
|
}));
|
|
}
|
|
;
|
|
};
|
|
bodavm.toolsFunc.safeProto(XRRay, "XRRay");
|
|
bodavm.toolsFunc.defineProperty(XRRay.prototype, "origin", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function origin() {
|
|
return bodavm.toolsFunc.dispatch(this, XRRay.prototype, "XRRay", "origin_get", arguments);
|
|
},
|
|
set: undefined
|
|
});
|
|
bodavm.toolsFunc.defineProperty(XRRay.prototype, "direction", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function direction() {
|
|
return bodavm.toolsFunc.dispatch(this, XRRay.prototype, "XRRay", "direction_get", arguments);
|
|
},
|
|
set: undefined
|
|
});
|
|
bodavm.toolsFunc.defineProperty(XRRay.prototype, "matrix", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function matrix() {
|
|
return bodavm.toolsFunc.dispatch(this, XRRay.prototype, "XRRay", "matrix_get", arguments);
|
|
},
|
|
set: undefined
|
|
}); |