Skip to content

Commit

Permalink
Add more attribution comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ezzatron committed Apr 26, 2024
1 parent c9d02c6 commit f64ca49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lat_lon2n_E.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export function lat_lon2n_E(
longitude: number,
R_Ee: Matrix3x3 = ROTATION_MATRIX_e,
): Vector3 {
// based on https://github.com/pbrod/nvector/blob/b8afd89a860a4958d499789607aacb4168dcef87/src/nvector/core.py#L53
const [[n00, n01, n02], [n10, n11, n12], [n20, n21, n22]] = R_Ee;

const sinLat = Math.sin(latitude);
Expand Down
1 change: 1 addition & 0 deletions src/n_E2lat_lon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export function n_E2lat_lon(
n_E: Vector3,
R_Ee: Matrix3x3 = ROTATION_MATRIX_e,
): [latitude: number, longitude: number] {
// based on https://github.com/pbrod/nvector/blob/b8afd89a860a4958d499789607aacb4168dcef87/src/nvector/rotation.py#L406
const [x, y, z] = n_E;
const [[n00, n01, n02], [n10, n11, n12], [n20, n21, n22]] = R_Ee;

Expand Down

0 comments on commit f64ca49

Please sign in to comment.