Hello community,
I was looking at the code to perform a transformation from cartesian positions into GeodeticPoint instances, included in the OneAxisEllipsoid class’ method transform. In my specific use case, I have position vectors in ITRF already.
The method has the following signature:
public GeodeticPoint transform(final Vector3D point, final Frame frame, final AbsoluteDate date)
The Frame and AbsoluteDate instances are only needed on the first line of the method, when the point is transformed from frame to the body-fixed frame of the ellipsoid getFrame(). In my case, it requires me to pass the frame and a “placeholder” date to the method, which can be misleading.
Would it make sense to add another transform public method with signature:
public GeodeticPoint transform(final Vector3D pointInBodyFrame)
and then change the original in:
public GeodeticPoint transform(final Vector3D point, final Frame frame, final AbsoluteDate date){
final Vector3D pointInBodyFrame = frame.getStaticTransformTo(getFrame(), date).transformPosition(point);
return transform(pointInBodyFrame);
}
Would this be a potential addition to the class?
Thank you!