I'm developing a 3D structural calculation software and I need to reference the local coordinate system of the bars. We define that the x-axis will always coincide with the central axis of the bar, the z-axis will be perpendicular to the global Y-axis, and the y-axis will have the orientation in relation to the Y-axis as well: if its Y-axis projection is positive, , if the projection is negative, it will be negative. Now, from providing the coordinates of a slash, how can I do that? I can not understand which logic I will use to make the program understand this