I'm trying to draw an ellipse between two endpoints or that this drawing causes vertices:

In the function, I want to give the coordinates of two vertices and indicate the distance from the fact that the image causes the secondary axis (perpendicular to the line created by the vertices. I waved some kind of high school math, but am struggling with creating a function that gives me n values ββalong the ellipse. I looked at the ellipse package, but that seems to require correlation, however I want the function to return values ββlike ellipse .
I do not adhere to any specific approach, but would like to indicate the arguments in my attempt to function below. My search for the ellipse and R gave a lot of hits, but did not give the arguments I'm trying to use.
elip <- function(vert1 = c(.25, .45), vert2 = c(.5, .35), minoraxis = .1, n =150) { majoraxis <- sqrt(((vert2[1] - vert1[1])^2) + ((vert2[2] - vert1[2])^2)) center <- c((vert2[1] + vert1[1])/2, (vert2[2] + vert1[2])/2) half_ma <- minoraxis/2 focci_dist <- sqrt(abs((majoraxis ^2) - (half_ma^2))) }
source share