poliastro.core.czml_utils

Summary

Functions

intersection_ellipsoid_line(x, y, z, u1, u2, u3, a, b, c)

Intersection of an ellipsoid defined by its axes a, b, c with the

project_point_on_ellipsoid(x, y, z, a, b, c)

Return the projection of a point on an ellipsoid.

Contents

poliastro.core.czml_utils.intersection_ellipsoid_line(x, y, z, u1, u2, u3, a, b, c)

Intersection of an ellipsoid defined by its axes a, b, c with the line p + λu.

Parameters
  • x (float) – A point of the line

  • y (float) – A point of the line

  • z (float) – A point of the line

  • u1 (float) – The line vector

  • u2 (float) – The line vector

  • u3 (float) – The line vector

  • a (float) – The ellipsoidal axises

  • b (float) – The ellipsoidal axises

  • c (float) – The ellipsoidal axises

Returns

p0, p1 – This returns both of the points intersecting the ellipsoid.

Return type

numpy.ndarray

poliastro.core.czml_utils.project_point_on_ellipsoid(x, y, z, a, b, c)

Return the projection of a point on an ellipsoid.

Parameters
  • x (float) – Cartesian coordinates of point

  • y (float) – Cartesian coordinates of point

  • z (float) – Cartesian coordinates of point

  • a (float) – Semi-axes of the ellipsoid

  • b (float) – Semi-axes of the ellipsoid

  • c (float) – Semi-axes of the ellipsoid