From b89a7ee8b956c96a1dcee995ea840feddc5d4b27 Mon Sep 17 00:00:00 2001 From: Pierre Frisch Date: Thu, 22 Dec 2011 07:25:50 -0800 Subject: First commit of Ninja to ninja-internal Signed-off-by: Valerio Virgillito --- js/helper-classes/3D/LinePlaneIntersectRec.js | 60 +++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 js/helper-classes/3D/LinePlaneIntersectRec.js (limited to 'js/helper-classes/3D/LinePlaneIntersectRec.js') 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 @@ +/* +This file contains proprietary software owned by Motorola Mobility, Inc.
+No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
+(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. +
*/ + +/////////////////////////////////////////////////////////////////////// +// 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; } }, + + getElementPlanes: { value: function() { return this._deltaVis; } }, + setElementPlanes: { value: function(p) { this._elementPlanes = p; } }, + + 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 + /////////////////////////////////////////////////////////////////////// + +}); + + -- cgit v1.2.3