This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function($) { | |
| // SIMPLE BOX | |
| // make your own lightbox cuz they all suck | |
| var imgSrc | |
| , $simpleBox; | |
| window.fitImg = function() { | |
| var $img = $("#simple-box img"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private bool planesIntersectAtSinglePoint( Plane p0, Plane p1, Plane p2, out Vector3 intersectionPoint ) | |
| { | |
| const float EPSILON = 1e-4f; | |
| var det = Vector3.Dot( Vector3.Cross( p0.normal, p1.normal ), p2.normal ); | |
| if( det < EPSILON ) | |
| { | |
| intersectionPoint = Vector3.zero; | |
| return false; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * ============================================================================ | |
| * MIT License | |
| * | |
| * Copyright (c) 2016 Eric Phillips | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a | |
| * copy of this software and associated documentation files (the "Software"), | |
| * to deal in the Software without restriction, including without limitation | |
| * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
OlderNewer