poliastro.czml.utils

Module Contents

Functions

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

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

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

Return the projection of a point on an ellipsoid.

poliastro.czml.utils.intersection_ellipsoid_line(x, y, z, u1, u2, u3, a, b, c)

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

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

  • y – a point of the line

  • z – a point of the line

  • u1 (float) – the line vector

  • u2 – the line vector

  • u3 – the line vector

  • a (float) – the ellipsoidal axises

  • b – the ellipsoidal axises

  • c – the ellipsoidal axises

Returns

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

Return type

list

poliastro.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 – Cartesian coordinates of point

  • z – Cartesian coordinates of point

  • a (float) – semi-axises of the ellipsoid

  • b – semi-axises of the ellipsoid

  • c – semi-axises of the ellipsoid