poliastro2.czml.czml_utils¶
Functions
|
Intersection of an ellipsoid defined by its axes a, b, c with the line p + λu. |
|
Return the projection of a point on an ellipsoid. |
- poliastro2.czml.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
- poliastro2.czml.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