forked from junmer/clipper-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fixed spdx license name in package.json and added license text
- Loading branch information
1 parent
bf812be
commit c0d45da
Showing
2 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/******************************************************************************** | ||
* * | ||
* Author : Angus Johnson * | ||
* Version : 6.2.1 * | ||
* Date : 31 October 2014 * | ||
* Website : http://www.angusj.com * | ||
* Copyright : Angus Johnson 2010-2014 * | ||
* * | ||
* License: * | ||
* Use, modification & distribution is subject to Boost Software License Ver 1. * | ||
* http://www.boost.org/LICENSE_1_0.txt * | ||
* * | ||
* Attributions: * | ||
* The code in this library is an extension of Bala Vatti's clipping algorithm: * | ||
* "A generic solution to polygon clipping" * | ||
* Communications of the ACM, Vol 35, Issue 7 (July 1992) pp 56-63. * | ||
* http://portal.acm.org/citation.cfm?id=129906 * | ||
* * | ||
* Computer graphics and geometric modeling: implementation and algorithms * | ||
* By Max K. Agoston * | ||
* Springer; 1 edition (January 4, 2005) * | ||
* http://books.google.com/books?q=vatti+clipping+agoston * | ||
* * | ||
* See also: * | ||
* "Polygon Offsetting by Computing Winding Numbers" * | ||
* Paper no. DETC2005-85513 pp. 565-575 * | ||
* ASME 2005 International Design Engineering Technical Conferences * | ||
* and Computers and Information in Engineering Conference (IDETC/CIE2005) * | ||
* September 24-28, 2005 , Long Beach, California, USA * | ||
* http://www.me.berkeley.edu/~mcmains/pubs/DAC05OffsetPolygon.pdf * | ||
* * | ||
*******************************************************************************/ | ||
/******************************************************************************* | ||
* * | ||
* Author : Timo * | ||
* Version : 6.2.1.0 * | ||
* Date : 17 June 2016 * | ||
* * | ||
* This is a translation of the C# Clipper library to Javascript. * | ||
* Int128 struct of C# is implemented using JSBN of Tom Wu. * | ||
* Because Javascript lacks support for 64-bit integers, the space * | ||
* is a little more restricted than in C# version. * | ||
* * | ||
* C# version has support for coordinate space: * | ||
* +-4611686018427387903 ( sqrt(2^127 -1)/2 ) * | ||
* while Javascript version has support for space: * | ||
* +-4503599627370495 ( sqrt(2^106 -1)/2 ) * | ||
* * | ||
* Tom Wu's JSBN proved to be the fastest big integer library: * | ||
* http://jsperf.com/big-integer-library-test * | ||
* * | ||
* This class can be made simpler when (if ever) 64-bit integer support comes. * | ||
* * | ||
*******************************************************************************/ | ||
/******************************************************************************* | ||
* * | ||
* Basic JavaScript BN library - subset useful for RSA encryption. * | ||
* http://www-cs-students.stanford.edu/~tjw/jsbn/ * | ||
* Copyright (c) 2005 Tom Wu * | ||
* All Rights Reserved. * | ||
* See "LICENSE" for details: * | ||
* http://www-cs-students.stanford.edu/~tjw/jsbn/LICENSE * | ||
* * | ||
*******************************************************************************/ | ||
|
This file contains 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