Created
August 1, 2024 17:52
-
-
Save hernandohhoyos/7f93470c1b6f65d5215d99c052779b73 to your computer and use it in GitHub Desktop.
Calcular el punto medio M de la línea AB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
a = np.array((0,0,0)) | |
b = np.array((1,0,0)) | |
M = ((a[0] + b[0]) / 2, (a[1] + b[1]) / 2, (a[2] + b[2]) / 2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment