Sha256: 4e14daf62d8510cc28d446b9b738914623833afd9295df7e9f228e0856ed3911
Contents?: true
Size: 1.77 KB
Versions: 1
Compression:
Stored size: 1.77 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1372843465.180435:@value"�{I" class:EFI"BundledAsset;FI"logical_path;FI""Core/pointInsideTriangle2D.js;TI" pathname;FI"Z/Users/bwrona/www/engines/cesium/app/assets/javascripts/Core/pointInsideTriangle2D.js;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-07-03T11:02:49+02:00;FI"length;Fi�I"digest;F"%9597e511da0cf53621fbaaeb7882abadI"source;FI"�/*global define*/ define(['./DeveloperError'], function(DeveloperError) { "use strict"; /** * DOC_TBA * * @param point * @param p0 * @param p1 * @param p2 * * @exports pointInsideTriangle2D * * @exception {DeveloperError} point, p0, p1, and p2 are required. */ var pointInsideTriangle2D = function(point, p0, p1, p2) { if (typeof point === 'undefined' || typeof p0 === 'undefined' || typeof p1 === 'undefined' || typeof p2 === 'undefined') { throw new DeveloperError('point, p0, p1, and p2 are required.'); } // Implementation based on http://www.blackpawn.com/texts/pointinpoly/default.html. var v0 = p1.subtract(p0); var v1 = p2.subtract(p0); var v2 = point.subtract(p0); var dot00 = v0.dot(v0); var dot01 = v0.dot(v1); var dot02 = v0.dot(v2); var dot11 = v1.dot(v1); var dot12 = v1.dot(v2); var q = 1.0 / (dot00 * dot11 - dot01 * dot01); var u = (dot11 * dot02 - dot01 * dot12) * q; var v = (dot00 * dot12 - dot01 * dot02) * q; return (u > 0) && (v > 0) && (u + v < 1); }; return pointInsideTriangle2D; }); ;FI"required_assets_digest;F"%660d64ec68bd5be959c158a0b86916a3I" _version;F"%6776f581a4329e299531e1d52aa59832
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cesium-0.18.0 | test/dummy/tmp/cache/assets/D4B/2F0/sprockets%2F944bb1ec3edf854ec91c86669d02a618 |