transformToEntityFrame
external fun transformToEntityFrame(time: JulianDate, pathEntityPos: Cartesian3, refEntityPos: Cartesian3, refEntity: Entity, result: Cartesian3): Cartesian3?(source)
Transforms a path entity's position into the local frame of the reference entity. If the reference entity has an orientation, uses that orientation to define the local frame. Otherwise, falls back to a VVLH (Vehicle Velocity Local Horizontal) frame derived from the reference entity's velocity.
Return
The transformed position in the reference entity's local frame, or undefined if either input position is undefined.
Parameters
time
The time at which to evaluate the orientation or VVLH frame.
pathEntityPos
The position of the path entity in the FIXED reference frame.
refEntityPos
The position of the reference entity in the FIXED reference frame.
refEntity
The reference entity whose frame to transform into.
result
The object onto which to store the result.