diff --git a/src/lat_lon2n_E.ts b/src/lat_lon2n_E.ts index c447313..6b72c57 100644 --- a/src/lat_lon2n_E.ts +++ b/src/lat_lon2n_E.ts @@ -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); diff --git a/src/n_E2lat_lon.ts b/src/n_E2lat_lon.ts index e615caa..0fef0dc 100644 --- a/src/n_E2lat_lon.ts +++ b/src/n_E2lat_lon.ts @@ -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;