diff options
Diffstat (limited to 'js/helper-classes/3D/LinePlaneIntersectRec.js')
-rw-r--r-- | js/helper-classes/3D/LinePlaneIntersectRec.js | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/js/helper-classes/3D/LinePlaneIntersectRec.js b/js/helper-classes/3D/LinePlaneIntersectRec.js new file mode 100644 index 00000000..e075dd3d --- /dev/null +++ b/js/helper-classes/3D/LinePlaneIntersectRec.js | |||
@@ -0,0 +1,60 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
5 | </copyright> */ | ||
6 | |||
7 | /////////////////////////////////////////////////////////////////////// | ||
8 | // Class Utils | ||
9 | // This class represents an intersection between a StageLine | ||
10 | // and an ElementsPlane. | ||
11 | /////////////////////////////////////////////////////////////////////// | ||
12 | var LinePlaneIntersectRec = exports.LinePlaneIntersectRec = Object.create(Object.prototype, { | ||
13 | /////////////////////////////////////////////////////////////////////// | ||
14 | // Instance variables | ||
15 | /////////////////////////////////////////////////////////////////////// | ||
16 | |||
17 | // references to the StageLine and ElementPlanes instances | ||
18 | _stageLine: { value: null, writable: true }, | ||
19 | _elementPlanes: { value: null, writable: true }, | ||
20 | |||
21 | // the intersection information | ||
22 | _t: { value: null, writable: true }, | ||
23 | _deltaVis: { value: null, writable: true }, | ||
24 | |||
25 | // doubly linked list to allow easy sorted insertions | ||
26 | _next: { value: null, writable: true }, | ||
27 | _prev: { value: null, writable: true }, | ||
28 | |||
29 | /////////////////////////////////////////////////////////////////////// | ||
30 | // Property accessors | ||
31 | /////////////////////////////////////////////////////////////////////// | ||
32 | |||
33 | getStageLine: { value: function() { return this._stageLine; } }, | ||
34 | setStageLine: { value: function(sl) { this._stageLine = sl; } }, | ||
35 | |||
36 | getElementPlanes: { value: function() { return this._elementPlanes; } }, | ||
37 | setElementPlanes: { value: function(p) { this._elementPlanes = p; } }, | ||
38 | |||
39 | getT: { value: function() { return this._t; } }, | ||
40 | setT: { value: function(t) { this._t = t; } }, | ||
41 | |||
42 | setDeltaVis: { value: function(d) { this._deltaVis = d; } }, | ||
43 | getDeltaVis: { value: function() { return this._deltaVis; } }, | ||
44 | |||
45 | getElementPlanes: { value: function() { return this._deltaVis; } }, | ||
46 | setElementPlanes: { value: function(p) { this._elementPlanes = p; } }, | ||
47 | |||
48 | setNext: { value: function(n) { this._next = n; } }, | ||
49 | getNext: { value: function() { return this._next; } }, | ||
50 | |||
51 | getPrev: { value: function() { return this._prev; } }, | ||
52 | setPrev: { value: function(p) { this._prev = p; } } | ||
53 | |||
54 | /////////////////////////////////////////////////////////////////////// | ||
55 | // Methods | ||
56 | /////////////////////////////////////////////////////////////////////// | ||
57 | |||
58 | }); | ||
59 | |||
60 | |||