-
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.
Merge pull request #200 from observerly/feature/healpix/face/Face
feat: add type Face struct to healpix module in @observerly/skysolve
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
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,22 @@ | ||
/*****************************************************************************************************************/ | ||
|
||
// @author Michael Roberts <michael@observerly.com> | ||
// @package @observerly/skysolve | ||
// @license Copyright © 2021-2025 observerly | ||
|
||
/*****************************************************************************************************************/ | ||
|
||
package healpix | ||
|
||
/*****************************************************************************************************************/ | ||
|
||
// Face represents the properties of a base pixel (or “face”) of a HEALPix map. | ||
type Face struct { | ||
faceId int // the index of the face (0 to 11), arranged in rings around the map | ||
row int // the row in which the face resides (0, 1, or 2) | ||
southVertexY int // the y coordinate of the southernmost vertex (typically 2, 3, or 4) | ||
southVertexX int // the x coordinate of the southernmost vertex (typically between 0 and 7) | ||
neighbors map[byte]int // a map of neighboring faces; the key packs the (x,y) offset into a byte | ||
} | ||
|
||
/*****************************************************************************************************************/ |
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,11 @@ | ||
/*****************************************************************************************************************/ | ||
|
||
// @author Michael Roberts <michael@observerly.com> | ||
// @package @observerly/skysolve | ||
// @license Copyright © 2021-2025 observerly | ||
|
||
/*****************************************************************************************************************/ | ||
|
||
package healpix | ||
|
||
/*****************************************************************************************************************/ |