Frames¶
Source: AI/Tools/FrameTools.cs
Compute rotation and state-rotation matrices between any two SPICE-known reference frames at a given epoch. See Standards & Units → Reference frames for the available frame names.
GetFrameRotationMatrix¶
Compute the 3×3 rotation matrix R such that v_target = R · v_source.
| Parameter | Type | Description |
|---|---|---|
fromFrame |
FramesEnum |
Source frame |
toFrame |
FramesEnum |
Target frame |
datetime |
ISO 8601 string | Epoch |
Returns a RotationMatrix (three row vectors).
GetFrameStateRotationMatrix¶
Compute both R and its time derivative dR/dt. Together they form the 6×6 state-transition matrix [[R, 0], [dR/dt, R]] mapping stacked (position, velocity) states.
| Parameter | Type | Description |
|---|---|---|
fromFrame |
FramesEnum |
Source frame |
toFrame |
FramesEnum |
Target frame |
datetime |
ISO 8601 string | Epoch |
Returns a StateRotationMatrix with r and rDot fields.