Skip to content

Commit

Permalink
fix: use float instead of np.float
Browse files Browse the repository at this point in the history
  • Loading branch information
FLming committed May 15, 2024
1 parent 0b99058 commit 51f9d94
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions foronoi/graph/algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ def norm(vector):
@staticmethod
def line_ray_intersection_point(ray_orig, ray_end, point_1, point_2):
# Convert to numpy arrays
orig = np.array(ray_orig, dtype=np.float)
end = np.array(ray_end, dtype=np.float)
direction = np.array(Algebra.norm(end - orig), dtype=np.float)
point_1 = np.array(point_1, dtype=np.float)
point_2 = np.array(point_2, dtype=np.float)
orig = np.array(ray_orig, dtype=float)
end = np.array(ray_end, dtype=float)
direction = np.array(Algebra.norm(end - orig), dtype=float)
point_1 = np.array(point_1, dtype=float)
point_2 = np.array(point_2, dtype=float)

# Ray-Line Segment Intersection Test in 2D
# http://bit.ly/1CoxdrG
Expand Down

0 comments on commit 51f9d94

Please sign in to comment.