I've been trying to figure out how to best place parallel lines next to the main middle one for the past few days with no luck. Here's the function code I have so far:
function Draw3DLine(dx1#, dy1#, dz1#, dx2#, dy2#, dz2#, r1, g1, b1, r2, g2, b2)
nx# as float
ny# as float
dr# as float
dr#=yyy3#*.015
dlx as float = dx2#-dx1#
dly as float = dy2#-dy1#
ny#=atan(dly)*dr#
nx#=atan(dlx)*dr#
d3d_line3d dx1#+(nx#), dy1#, dz1#+(ny#), dx2#+(nx#), dy2#, dz2#+(ny#), rgb(r1,g1,b1), rgb(r2,g2,b2), 0
d3d_line3d dx1#, dy1#, dz1#, dx2#, dy2#, dz2#, rgb(r1,g1,b1), rgb(r2,g2,b2), 0
d3d_line3d dx1#-(nx#), dy1#, dz1#-(ny#), dx2#-(nx#), dy2#, dz2#-(ny#), rgb(r1,g1,b1), rgb(r2,g2,b2), 0
endfunction
As you see with the code, I am trying to create a function that places 2 parallel lines next to the main one in the middle while maintaining equilateral distance from the middle line.
I may have to provide a picture to show exactly what I want, but try to imagine a long box has it's 2 long sides stay parallel to the center of the box and keeping the same distance from the center of that box.
Home is where my souped-up computer is...
