Skip to content
Snippets Groups Projects
Commit 6e06809e authored by Amy Stamile's avatar Amy Stamile
Browse files

clean up docs

parent e35fc471
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ import csmapi
class Ellipsoid:
"""
A biaxial ellipsoid shape model.
A biaxial or triaxial ellipsoid shape model.
"""
def __init__(self, semi_major, semi_minor=None, median=None):
......@@ -15,9 +15,11 @@ class Ellipsoid:
Parameters
----------
semi_major : float
The equatorial semi-major radius of the ellipsoid.
Length of ellipsoid semi-axis along the x-axis.
semi_minor : float
The polar semi-minor radius of the ellipsoid.
Length of ellipsoid semi-axis along the z-axis.
median : float
Length of ellipsoid semi-axis along the y-axis.
"""
self.a = semi_major
self.b = semi_major
......@@ -35,6 +37,7 @@ class Ellipsoid:
semi_major, semi_minor = csm.get_radii(sensor)
return cls(semi_major, semi_minor)
def get_surface_normal(self, ground_pt):
"""
Given a ground point, calculate the surface normal.
......
......@@ -29,7 +29,6 @@ def sep_angle(a_vec, b_vec):
: np.ndarray
"""
dot_prod = a_vec.x * b_vec.x + a_vec.y * b_vec.y + a_vec.z * b_vec.z
print(dot_prod)
dot_prod /= magnitude(a_vec) * magnitude(b_vec)
if(dot_prod >= 1.0): return 0.0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment