solarspatialtools.spatial.compute_intersection
- solarspatialtools.spatial.compute_intersection(A, B)
Computes intersection, C, of the lines perpendicular to the tips of two vectors (A and B) who share a starting point at the origin.
Vectors are specified in nx2 arrays and computations of Ci are made for each vector pair Ai, Bi.
Parameters
- Anp.array
nx2 array of the vectors. Outer index is the vector instance, inner index is the coordinate x,y: [[ax1,ay1], [ax2,ay2], …, [axn,ayn]]
- Bnp.array
nx2 array of the vectors. Outer index is the vector instance, inner index is the coordinate x,y: [[bx1,by1], [bx2,by2], …, [bxn,byn]]
Returns
- Cnp.array
nx2 array of computed positions of the intersection. [[cx1,cy1], [cx2,cy2], …, [cxn,cyn]]