Skip to content

Commit 361fb21

Browse files
committed
Remove getQuintant
1 parent 32d9788 commit 361fb21

2 files changed

Lines changed: 4 additions & 12 deletions

File tree

modules/core/cell.ts

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

8-
import type { Cartesian, Degrees, Face, LonLat, Spherical } from "./coordinate-systems";
8+
import type { Face, LonLat } from "./coordinate-systems";
99
import { FaceToIJ, fromLonLat, toCartesian, toFace } from "./coordinate-transforms";
1010
import { findNearestOrigin, quintantToSegment, segmentToQuintant } from "./origin";
1111
import { unprojectDodecahedron } from "./dodecahedron";
12-
import { A5Cell, Pentagon, PentagonShape } from "./utils";
13-
import { getFaceVertices, getPentagonVertices, getQuintant, getQuintantPolar, getQuintantVertices } from "./tiling";
12+
import { A5Cell, PentagonShape } from "./utils";
13+
import { getFaceVertices, getPentagonVertices, getQuintantPolar, getQuintantVertices } from "./tiling";
1414
import { PI_OVER_5 } from "./constants";
1515
import { IJToS, sToAnchor } from "./hilbert";
16-
import { projectPentagon, projectPoint, reprojectPentagon } from "./project";
16+
import { projectPentagon, projectPoint } from "./project";
1717
import { deserialize, serialize, FIRST_HILBERT_RESOLUTION } from "./serialization";
1818
import { SphericalPentagonShape } from "./spherical-pentagon";
1919

modules/core/tiling.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,6 @@ export function getFaceVertices(): PentagonShape {
8989
return new PentagonShape(vertices as Pentagon);
9090
}
9191

92-
93-
export function getQuintant(point: vec2): number {
94-
// TODO perhaps quicker way without trigonometry
95-
const angle = Math.atan2(point[1], point[0]);
96-
const normalizedAngle = (angle - V + TWO_PI) % TWO_PI;
97-
return Math.ceil(normalizedAngle / TWO_PI_OVER_5) % 5;
98-
}
99-
10092
export function getQuintantPolar([_, gamma]: Polar): number {
10193
return (Math.round(gamma / TWO_PI_OVER_5) + 5) % 5;
10294
}

0 commit comments

Comments
 (0)