aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/3D/LinePlaneIntersectRec.js
blob: cb172bf7ba61c8d32effbdbfcbc2b29df5161e05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* <copyright>
This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
(c) Copyright 2011 Motorola Mobility, Inc.  All Rights Reserved.
</copyright> */

///////////////////////////////////////////////////////////////////////
// Class Utils
//      This class represents an intersection between a StageLine
//      and an ElementsPlane.
///////////////////////////////////////////////////////////////////////
var LinePlaneIntersectRec = exports.LinePlaneIntersectRec = Object.create(Object.prototype, {
    ///////////////////////////////////////////////////////////////////////
    // Instance variables
    ///////////////////////////////////////////////////////////////////////

    // references to the StageLine and ElementPlanes instances
    _stageLine: { value: null, writable: true },
    _elementPlanes: { value: null, writable: true },

    // the intersection information
    _t: { value: null, writable: true },
    _deltaVis: { value: null, writable: true },

    // doubly linked list to allow easy sorted insertions
    _next: { value: null, writable: true },
    _prev: { value: null, writable: true },

    ///////////////////////////////////////////////////////////////////////
    // Property accessors
    ///////////////////////////////////////////////////////////////////////

    getStageLine: { value: function()        {  return this._stageLine;      } },
    setStageLine: { value: function(sl)      {  this._stageLine = sl;        } },

    getElementPlanes: { value: function()        {  return this._elementPlanes;  } },
    setElementPlanes: { value: function(p)       {  this._elementPlanes = p;     } },

	getT: { value: function()		{  return this._t;				} },
	setT: { value: function(t)		{  this._t = t;					} },

	setDeltaVis: { value: function(d)       {  this._deltaVis = d;          } },
	getDeltaVis: { value: function()        {  return this._deltaVis;       } },

	setNext: { value: function(n)		{  this._next = n;				} },
	getNext: { value: function()		{  return this._next;			} },

	getPrev: { value: function()		{  return this._prev;			} },
	setPrev: { value: function(p)		{  this._prev = p;				} }

    ///////////////////////////////////////////////////////////////////////
    // Methods
    ///////////////////////////////////////////////////////////////////////

});