aboutsummaryrefslogtreecommitdiff
path: root/js/models/properties-3d.js
diff options
context:
space:
mode:
authorPushkar Joshi2012-03-06 17:05:05 -0800
committerPushkar Joshi2012-03-06 17:05:05 -0800
commit794abd077a0cd4c797d3f566281deca77b184bfe (patch)
tree3bf4a83ca714def2671fe8cef93db859b0d5553f /js/models/properties-3d.js
parentc155cd238b6f9e0b8191e0fc533f7bc974b762c2 (diff)
parent2e3943a8f751ec572066f168b58464c24b9f29e5 (diff)
downloadninja-794abd077a0cd4c797d3f566281deca77b184bfe.tar.gz
Merge branch 'master' into pentool
Diffstat (limited to 'js/models/properties-3d.js')
-rwxr-xr-xjs/models/properties-3d.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/js/models/properties-3d.js b/js/models/properties-3d.js
index cf4a045f..0f82dc48 100755
--- a/js/models/properties-3d.js
+++ b/js/models/properties-3d.js
@@ -9,9 +9,9 @@ var Montage = require("montage/core/core").Montage,
9 9
10exports.Properties3D = Montage.create(Component, { 10exports.Properties3D = Montage.create(Component, {
11 11
12 // m_upVector : {value : Vector.create( [0,1,0] ), enumerable: true}, 12 // m_upVector : {value : [0,1,0], enumerable: true},
13 // m_targetPos : {value : Vector.create( [0,0,0] ), enumerable: true}, 13 // m_targetPos : {value : [0,0,0], enumerable: true},
14 // m_objStartPos : {value : Vector.create( [0,0,0] ), enumerable: true}, 14 // m_objStartPos : {value : [0,0,0], enumerable: true},
15 15
16 m_azimuth : {value : 0.0, enumerable: true}, 16 m_azimuth : {value : 0.0, enumerable: true},
17 m_altitude : {value : 0.0, enumerable: true}, 17 m_altitude : {value : 0.0, enumerable: true},
@@ -50,12 +50,12 @@ exports.Properties3D = Montage.create(Component, {
50 this.m_transformCtr = null; 50 this.m_transformCtr = null;
51 this.perspectiveDist = 1400; 51 this.perspectiveDist = 1400;
52 52
53// this.m_upVector = Vector.create( [0,1,0] ); 53// this.m_upVector = [0,1,0];
54// this.m_viewDir = Vector.create( [0,0,1] ); 54// this.m_viewDir = [0,0,1];
55// this.m_endUpVector = Vector.create( [0,1,0] ); 55// this.m_endUpVector = [0,1,0];
56 56
57// this.m_targetPos = Vector.create( [0,0,0] ); 57// this.m_targetPos = [0,0,0];
58// this.m_objStartPos = Vector.create( [0,0,0] ); 58// this.m_objStartPos = [0,0,0];
59 59
60// var mat = this.application.ninja.stage.stageDeps.viewUtils.getMatrixFromElement(elt).slice(0); 60// var mat = this.application.ninja.stage.stageDeps.viewUtils.getMatrixFromElement(elt).slice(0);
61// var elt3DInfo = MathUtils.decomposeMatrix2(mat); 61// var elt3DInfo = MathUtils.decomposeMatrix2(mat);
@@ -79,8 +79,8 @@ exports.Properties3D = Montage.create(Component, {
79 79
80 ResetRotationValues : { 80 ResetRotationValues : {
81 value : function() { 81 value : function() {
82// this.m_upVector = Vector.create( [0,1,0] ); 82// this.m_upVector = [0,1,0];
83// this.m_viewDir = Vector.create( [0,0,1] ); 83// this.m_viewDir = [0,0,1];
84 84
85 this.m_azimuth = 0.0; 85 this.m_azimuth = 0.0;
86 this.m_altitude = 0.0; 86 this.m_altitude = 0.0;
@@ -89,13 +89,13 @@ exports.Properties3D = Montage.create(Component, {
89 this.m_endAltitude = 0.0; 89 this.m_endAltitude = 0.0;
90 90
91 this.m_transformCtr = null; 91 this.m_transformCtr = null;
92// this.m_targetPos = Vector.create( [0,0,0] ); 92// this.m_targetPos = [0,0,0];
93 } 93 }
94 }, 94 },
95 95
96 ResetTranslationValues : { 96 ResetTranslationValues : {
97 value : function() { 97 value : function() {
98// this.m_objStartPos = Vector.create( [0,0,0] ); 98// this.m_objStartPos = [0,0,0];
99 this.perspectiveDist = 1400; 99 this.perspectiveDist = 1400;
100 } 100 }
101 } 101 }