Skip to content

Commit

Permalink
chore: Licenses (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibgreen committed Aug 3, 2024
1 parent ebb6049 commit 6352db8
Show file tree
Hide file tree
Showing 68 changed files with 257 additions and 15 deletions.
5 changes: 3 additions & 2 deletions modules/culling/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// This file is derived from the Cesium math library under Apache 2 license
// See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

export const INTERSECTION = {
OUTSIDE: -1, // Represents that an object is not contained within the frustum.
Expand Down
5 changes: 3 additions & 2 deletions modules/culling/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// This file is derived from the Cesium math library under Apache 2 license
// See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

export {INTERSECTION} from './constants';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and Apache-2.0
// Copyright (c) vis.gl contributors

// This file is derived from the Cesium math library under Apache 2 license
// See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and Apache-2.0
// Copyright (c) vis.gl contributors

// This file is derived from the Cesium math library under Apache 2 license
// See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and Apache-2.0
// Copyright (c) vis.gl contributors

// This file is derived from the Cesium math library under Apache 2 license
// See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and Apache-2.0
// Copyright (c) vis.gl contributors

import {BoundingVolume} from './bounding-volume';
import {Vector3} from '@math.gl/core';
import {Plane} from '../plane';
Expand Down
4 changes: 4 additions & 0 deletions modules/culling/src/lib/bounding-volumes/bounding-sphere.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and Apache-2.0
// Copyright (c) vis.gl contributors

// This file is derived from the Cesium math library under Apache 2 license
// See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md

Expand Down
4 changes: 4 additions & 0 deletions modules/culling/src/lib/bounding-volumes/bounding-volume.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and Apache-2.0
// Copyright (c) vis.gl contributors

// import {INTERSECTION} from '../../constants';
import {Plane} from '../plane';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and Apache-2.0
// Copyright (c) vis.gl contributors

// This file is derived from the Cesium math library under Apache 2 license
// See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md

Expand Down
4 changes: 4 additions & 0 deletions modules/culling/src/lib/culling-volume.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and Apache-2.0
// Copyright (c) vis.gl contributors

// This file is derived from the Cesium math library under Apache 2 license
// See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md

Expand Down
4 changes: 4 additions & 0 deletions modules/culling/src/lib/perspective-frustum.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and Apache-2.0
// Copyright (c) vis.gl contributors

// This file is derived from the Cesium math library under Apache 2 license
// See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md

Expand Down
4 changes: 4 additions & 0 deletions modules/culling/src/lib/perspective-off-center-frustum.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and Apache-2.0
// Copyright (c) vis.gl contributors

// This file is derived from the Cesium math library under Apache 2 license
// See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md

Expand Down
4 changes: 4 additions & 0 deletions modules/culling/src/lib/plane.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and Apache-2.0
// Copyright (c) vis.gl contributors

// This file is derived from the Cesium math library under Apache 2 license
// See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md

Expand Down
4 changes: 3 additions & 1 deletion modules/dggs-geohash/src/geohash.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// math.gl, MIT license
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

/* eslint-disable max-depth */

Expand Down
4 changes: 4 additions & 0 deletions modules/dggs-geohash/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

export {getGeohashLngLat, getGeohashBoundary, getGeohashBoundaryFlat} from './geohash';
export {getGeohashBounds} from './geohash';
4 changes: 4 additions & 0 deletions modules/dggs-geohash/test/geohash.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import test from 'tape-promise/tape';
import {getGeohashBounds, getGeohashBoundaryFlat} from '@math.gl/dggs-geohash';

Expand Down
4 changes: 4 additions & 0 deletions modules/dggs-geohash/test/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import './geohash.spec';
4 changes: 3 additions & 1 deletion modules/dggs-quadkey/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// math.gl, MIT license
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

export {quadkeyToWorldBounds, getQuadkeyBoundary, getQuadkeyBoundaryFlat} from './quadkey';
4 changes: 3 additions & 1 deletion modules/dggs-quadkey/src/quadkey.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// @math.gl, MIT license
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

const TILE_SIZE = 512;

Expand Down
4 changes: 4 additions & 0 deletions modules/dggs-quadkey/test/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import './quadkey.spec';
4 changes: 4 additions & 0 deletions modules/dggs-quadkey/test/quadkey.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import test from 'tape-promise/tape';
import {quadkeyToWorldBounds, getQuadkeyBoundary} from '@math.gl/dggs-quadkey';

Expand Down
4 changes: 3 additions & 1 deletion modules/dggs-s2/src/converters/s2-to-boundary.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// math.gl, MIT license
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import {IJToST, STToUV, FaceUVToXYZ, XYZToLngLat} from '../s2geometry/s2-geometry';
import {getS2Cell} from '../s2geometry/s2-cell-utils';
Expand Down
Empty file.
4 changes: 3 additions & 1 deletion modules/dggs-s2/src/converters/s2-to-obb-points.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// math.gl, MIT license
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import {getS2Cell} from '../s2geometry/s2-cell-utils';
import {getS2Region} from './s2-to-region';
Expand Down
4 changes: 4 additions & 0 deletions modules/dggs-s2/src/converters/s2-to-region.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import {getS2GeoBoundsFromCell} from './s2-to-boundary';

export function getS2Region(s2cell: {face: number; ij: [number, number]; level: number}): number[] {
Expand Down
4 changes: 3 additions & 1 deletion modules/dggs-s2/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// math.gl MIT license
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

export {getS2IndexFromToken, getS2TokenFromIndex, getS2ChildIndex} from './s2-token-functions';
export {getS2BoundaryFlat} from './s2-geometry-functions';
Expand Down
4 changes: 3 additions & 1 deletion modules/dggs-s2/src/s2-geometry-functions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// math.gl, MIT license
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import {getS2IndexFromToken} from './s2-token-functions';
import {getS2GeoBounds} from './converters/s2-to-boundary';
Expand Down
4 changes: 3 additions & 1 deletion modules/dggs-s2/src/s2-token-functions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// loaders.gl, MIT license
// math.gl
// SPDX-License-Identifier: MIT and Apache-2.0
// Copyright (c) vis.gl contributors

// s2-geometry is a pure JavaScript port of Google/Niantic's S2 Geometry library
// which is perfect since it works in the browser.
Expand Down
4 changes: 3 additions & 1 deletion modules/dggs-s2/src/s2geometry/s2-cell-utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// math.gl, MIT license
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import type {S2Cell} from './s2-geometry';
import {fromHilbertQuadKey, toHilbertQuadkey} from './s2-geometry';
Expand Down
4 changes: 4 additions & 0 deletions modules/dggs-s2/src/s2geometry/s2-geometry.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and ISC
// Copyright (c) vis.gl contributors

// math.gl, MIT license
/*
Adapted from s2-geometry under ISC License (ISC)
Expand Down
4 changes: 4 additions & 0 deletions modules/geoid/src/geoid.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

/**
* Code is ported from GeographicLib-1.50.1
* https://geographiclib.sourceforge.io/html/index.html
Expand Down
4 changes: 4 additions & 0 deletions modules/geoid/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

export {parsePGM} from './parse-pgm';
export {Geoid} from './geoid';
4 changes: 4 additions & 0 deletions modules/geoid/src/parse-pgm.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

// Parsing code is ported from GeographicLib-1.50.1: /GeographicLib-1.50.1/src/Geoid.cpp
// https://geographiclib.sourceforge.io/html/index.html
// Original code attribution:
Expand Down
4 changes: 4 additions & 0 deletions modules/geoid/test/utils/file-utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import fs from 'fs';

export async function openFile(filePath: string): Promise<Uint8Array | null> {
Expand Down
4 changes: 4 additions & 0 deletions modules/geospatial/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and Apache-2.0
// Copyright (c) vis.gl contributors

// This file is derived from the Cesium math library under Apache 2 license
// See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md

Expand Down
4 changes: 4 additions & 0 deletions modules/geospatial/src/ellipsoid/ellipsoid.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and Apache-2.0
// Copyright (c) vis.gl contributors

// This file is derived from the Cesium math library under Apache 2 license
// See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and Apache-2.0
// Copyright (c) vis.gl contributors

import {NumericArray, Vector3, assert, equals as equalsEpsilon} from '@math.gl/core';

import type {Ellipsoid} from '../ellipsoid';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and Apache-2.0
// Copyright (c) vis.gl contributors

/* eslint-disable */
import {Vector3, _MathUtils} from '@math.gl/core';
import type {Ellipsoid} from '../ellipsoid';
Expand Down
4 changes: 4 additions & 0 deletions modules/geospatial/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

export {Ellipsoid} from './ellipsoid/ellipsoid';
export {isWGS84} from './type-utils';
4 changes: 4 additions & 0 deletions modules/geospatial/src/type-utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and Apache-2.0
// Copyright (c) vis.gl contributors

// This file is derived from the Cesium math library under Apache 2 license
// See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md

Expand Down
4 changes: 4 additions & 0 deletions modules/geospatial/test/bench.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and Apache-2.0
// Copyright (c) vis.gl contributors

// This file is derived from the Cesium math library under Apache 2 license
// See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md

Expand Down
4 changes: 4 additions & 0 deletions modules/geospatial/test/ellipsoid/ellipsoid-transform.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and Apache-2.0
// Copyright (c) vis.gl contributors

// This file is derived from the Cesium math library under Apache 2 license
// See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md

Expand Down
4 changes: 4 additions & 0 deletions modules/geospatial/test/ellipsoid/ellipsoid.bench.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and Apache-2.0
// Copyright (c) vis.gl contributors

// This file is derived from the Cesium math library under Apache 2 license
// See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md

Expand Down
4 changes: 4 additions & 0 deletions modules/geospatial/test/ellipsoid/ellipsoid.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and Apache-2.0
// Copyright (c) vis.gl contributors

// This file is derived from the Cesium math library under Apache 2 license
// See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md

Expand Down
5 changes: 3 additions & 2 deletions modules/geospatial/test/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// This file is derived from the Cesium math library under Apache 2 license
// See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import './type-utils.spec';
import './ellipsoid/ellipsoid.spec';
Expand Down
4 changes: 4 additions & 0 deletions modules/polygon/src/cut-by-grid.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

/* eslint-disable max-statements, max-depth, complexity, no-unused-expressions */
import {bitCode, intersect, BoundingBox} from './lineclip';
import {getPointAtIndex, copy, push} from './utils';
Expand Down
4 changes: 4 additions & 0 deletions modules/polygon/src/cut-by-mercator-bounds.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import {cutPolylineByGrid, cutPolygonByGrid} from './cut-by-grid';
import {getPointAtIndex, push} from './utils';
import type {Polygon} from './cut-by-grid';
Expand Down
4 changes: 4 additions & 0 deletions modules/polygon/src/earcut.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and ISC
// Copyright (c) vis.gl contributors

/*
Adapted from https://github.com/mapbox/earcut to allow passing in
of outline and hole areas using the `areas` parameter. As the
Expand Down
4 changes: 4 additions & 0 deletions modules/polygon/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

export {Polygon} from './polygon';

export {
Expand Down
4 changes: 4 additions & 0 deletions modules/polygon/src/lineclip.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and ISC
// Copyright (c) vis.gl contributors

/*
Adapted from https://github.com/mapbox/lineclip to work with flat arrays
and 3d positions
Expand Down
4 changes: 4 additions & 0 deletions modules/polygon/src/polygon-utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// math.gl
// SPDX-License-Identifier: MIT and ISC
// Copyright (c) vis.gl contributors

/* eslint-disable max-statements, max-depth, complexity, no-unused-expressions */

import {equals} from '@math.gl/core';
Expand Down
Loading

0 comments on commit 6352db8

Please sign in to comment.