LofOffset construct

Hello!

I used code:

Frame frameS = s.getFrame();
// Create target point and target pointing law towards that point
final GeodeticPoint targetDef  = new GeodeticPoint(FastMath.toRadians(5.), FastMath.toRadians(-40.), 0.);
final TargetPointing targetLaw = new TargetPointing(orbit.getFrame(), targetDef, earthSpheric);

// Get roll, pitch, yaw angles corresponding to this pointing law
final LofOffset lofAlignedLaw = new LofOffset(orbit.getFrame(), LOFType.LVLH_CCSDS);
final Rotation lofAlignedRot = lofAlignedLaw.getAttitude(orbit, date, frameS).getRotation();
final Attitude targetAttitude = targetLaw.getAttitude(orbit, date, frameS);
final Rotation rollPitchYaw = targetAttitude.getRotation().compose(lofAlignedRot.revert(), RotationConvention.VECTOR_OPERATOR).revert();
final double[] angles = rollPitchYaw.getAngles(RotationOrder.ZYX, RotationConvention.VECTOR_OPERATOR);

If my s.getFrame() == FramesFactory.getEME2000() and I used frameS - angles of which coordinate system relative to which coordinate system do I get?

So it turns out that I build everything LVLH_CCSDS relatively FramesFactory.getEME2000()? But I need the angles of my spacecraft coordinate system relative to the orbital coordinate system - how should I build it then?

If I do this, will I get what I need?

Frame myLOFSpaceCraft = ....;
.....
final LofOffset lofAlignedLaw = new LofOffset(orbit.getFrame(), LOFType.LVLH_CCSDS);
final Rotation lofAlignedRot = lofAlignedLaw.getAttitude(orbit, date, myLOFSpaceCraft ).getRotation();
final Attitude targetAttitude = targetLaw.getAttitude(orbit, date, myLOFSpaceCraft );

So it turns out that I build everything LVLH_CCSDS relatively myLOFSpaceCraft?