toLookAngle method

LookAngle toLookAngle()

Converts to LookAngle.

Implementation

LookAngle toLookAngle() {
  final range = sqrt(south * south + east * east + normal * normal);
  final elevation = asin(normal / range);
  final azimuth = atan2(-east, south) + pi;

  return LookAngle(
      azimuth: Angle.radian(azimuth),
      elevation: Angle.radian(elevation),
      range: range);
}