Update links to external resources
This commit is contained in:
@@ -55,7 +55,7 @@ export function linearRingContainsXY(
|
||||
x,
|
||||
y
|
||||
) {
|
||||
// http://geomalgorithms.com/a03-_inclusion.html
|
||||
// https://geomalgorithms.com/a03-_inclusion.html
|
||||
// Copyright 2000 softSurfer, 2012 Dan Sunday
|
||||
// This code may be freely used and modified for any purpose
|
||||
// providing that this copyright notice is included with it.
|
||||
|
||||
@@ -14,8 +14,8 @@ import {coordinates as reverseCoordinates} from './reverse.js';
|
||||
* @return {boolean} Is clockwise.
|
||||
*/
|
||||
export function linearRingIsClockwise(flatCoordinates, offset, end, stride) {
|
||||
// http://tinyurl.com/clockwise-method
|
||||
// https://github.com/OSGeo/gdal/blob/trunk/gdal/ogr/ogrlinearring.cpp
|
||||
// https://stackoverflow.com/q/1165647/clockwise-method#1165943
|
||||
// https://github.com/OSGeo/gdal/blob/master/gdal/ogr/ogrlinearring.cpp
|
||||
let edge = 0;
|
||||
let x1 = flatCoordinates[end - stride];
|
||||
let y1 = flatCoordinates[end - stride + 1];
|
||||
|
||||
Reference in New Issue
Block a user