Skip to content

Commit bce983e

Browse files
authored
Rename coordinate systems files (#19)
1 parent dc1c21d commit bce983e

24 files changed

Lines changed: 31 additions & 33 deletions

examples/website/area/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {H3HexagonLayer} from '@deck.gl/geo-layers';
77
import {PolygonLayer} from '@deck.gl/layers';
88
import {cellArea, getRes0Cells, cellToChildren, cellToVertexes, vertexToLatLng, greatCircleDistance, cellToBoundary, cellToLatLng, isPentagon} from 'h3-js';
99
import {generateWireframe} from 'a5-internal/wireframe';
10-
import {toCartesian, fromLonLat} from 'a5/core/math';
10+
import {toCartesian, fromLonLat} from 'a5/core/coordinate-transforms';
1111
import {colorContinuous} from '@deck.gl/carto';
1212

1313
import {pentagonArea} from 'a5/core/utils';

examples/website/golf/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Canvas, useThree } from '@react-three/fiber';
44
import { OrbitControls, Environment } from '@react-three/drei';
55
import { ACESFilmicToneMapping, Vector3, Matrix4, Euler, DoubleSide, BackSide } from 'three';
66
import { generateWireframe } from 'a5-internal/wireframe';
7-
import { fromLonLat, toCartesian } from 'a5/core/math';
7+
import { fromLonLat, toCartesian } from 'a5/core/coordinate-transforms';
88

99
type DimplePosition = { center: Vector3; up: Vector3; };
1010

examples/website/teohedron-dodecahedron/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { OrbitControls } from '@react-three/drei';
55
import { DoubleSide, BufferGeometry, BufferAttribute, Vector3 } from 'three';
66
import { generateWireframe } from 'a5-internal/wireframe';
77

8-
import {fromLonLat, toCartesian} from 'a5/core/math';
8+
import {fromLonLat, toCartesian} from 'a5/core/coordinate-transforms';
99

1010
const RESOLUTION = 3;
1111

modules/core/cell.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import { mat2, vec2, glMatrix } from "gl-matrix";
66
glMatrix.setMatrixArrayType(Float64Array as any);
77

8-
import type { Face, LonLat } from "./types";
9-
import { FaceToIJ, fromLonLat, toFace } from "./math";
8+
import type { Face, LonLat } from "./coordinate-systems";
9+
import { FaceToIJ, fromLonLat, toFace } from "./coordinate-transforms";
1010
import { findNearestOrigin, quintantToSegment, segmentToQuintant } from "./origin";
1111
import { unprojectDodecahedron } from "./dodecahedron";
1212
import { A5Cell, PentagonShape } from "./utils";

modules/core/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33
// Copyright (c) A5 contributors
44

5-
import type { Radians } from "./types";
5+
import type { Radians } from "./coordinate-systems";
66

77
// Golden ratio
88
export const φ = (1 + Math.sqrt(5)) / 2;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import { vec2, quat, glMatrix } from 'gl-matrix';
66
glMatrix.setMatrixArrayType(Float64Array as any);
7-
import type { Degrees, Radians, Face, Polar, IJ, Cartesian, Spherical, LonLat } from "./types";
7+
import type { Degrees, Radians, Face, Polar, IJ, Cartesian, Spherical, LonLat } from "./coordinate-systems";
88
import { BASIS_INVERSE, BASIS } from "./pentagon";
99

1010
export function degToRad(deg: Degrees): Radians {

modules/core/dodecahedron.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
import { vec3, quat, glMatrix } from "gl-matrix";
66
glMatrix.setMatrixArrayType(Float64Array as any);
7-
import { toCartesian, toSpherical } from "./math";
8-
import type { Radians, Spherical, Cartesian, Polar } from "./types";
7+
import { toCartesian, toSpherical } from "./coordinate-transforms";
8+
import type { Radians, Spherical, Cartesian, Polar } from "./coordinate-systems";
99
import { unwarpPolar, warpPolar } from './warp';
1010
import { projectGnomonic, unprojectGnomonic } from './gnomonic';
1111

modules/core/gnomonic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33
// Copyright (c) A5 contributors
44

5-
import type { Polar, Spherical } from './types';
5+
import type { Polar, Spherical } from './coordinate-systems';
66

77
export function projectGnomonic([rho, gamma]: Polar): Spherical {
88
return [gamma, Math.atan(rho)] as Spherical;

modules/core/hilbert.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import { vec2, glMatrix } from 'gl-matrix';
66
glMatrix.setMatrixArrayType(Float64Array as any);
7-
import { IJ, KJ } from './types';
7+
import { IJ, KJ } from './coordinate-systems';
88

99
export type Quaternary = 0 | 1 | 2 | 3;
1010
export const YES = -1 as const;

0 commit comments

Comments
 (0)