| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010, Google Inc. | 2 * Copyright 2010, Google Inc. |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 /** | 45 /** |
| 46 * True if this ray intersection info is valid. For example if you call | 46 * True if this ray intersection info is valid. For example if you call |
| 47 * element.intersectRay on an element that has no vertex buffers the result | 47 * element.intersectRay on an element that has no vertex buffers the result |
| 48 * will be invalid. | 48 * will be invalid. |
| 49 * @type {boolean} | 49 * @type {boolean} |
| 50 */ | 50 */ |
| 51 o3d.RayIntersectionInfo.prototype.valid = false; | 51 o3d.RayIntersectionInfo.prototype.valid = false; |
| 52 | 52 |
| 53 | 53 |
| 54 /** |
| 55 * True if the origin of the ray is found to be inside the box. |
| 56 * @type {boolean} |
| 57 */ |
| 58 o3d.RayIntersectionInfo.prototype.inside = false; |
| 59 |
| 54 | 60 |
| 55 /** | 61 /** |
| 56 * True if this ray intersection intersected something. | 62 * True if this ray intersection intersected something. |
| 57 * @type {boolean} | 63 * @type {boolean} |
| 58 */ | 64 */ |
| 59 o3d.RayIntersectionInfo.prototype.intersected = false; | 65 o3d.RayIntersectionInfo.prototype.intersected = false; |
| 60 | 66 |
| 61 | 67 |
| 62 | 68 |
| 63 /** | 69 /** |
| 64 * The position the ray intersected something. | 70 * The position the ray intersected something. |
| 65 * type {!o3d.Point3} | 71 * type {!o3d.Point3} |
| 66 */ | 72 */ |
| 67 o3d.RayIntersectionInfo.prototype.position = [0, 0, 0]; | 73 o3d.RayIntersectionInfo.prototype.position = [0, 0, 0]; |
| 68 | 74 |
| 69 | 75 |
| 70 | 76 |
| 71 /** | 77 /** |
| 72 * The index of the primitive that was intersected. | 78 * The index of the primitive that was intersected. |
| 73 * @type {number} | 79 * @type {number} |
| 74 */ | 80 */ |
| 75 o3d.RayIntersectionInfo.prototype.primitiveIndex = -1; | 81 o3d.RayIntersectionInfo.prototype.primitiveIndex = -1; |
| 76 | 82 |
| 77 | 83 |
| 78 | 84 |
| OLD | NEW |