I want to make a plugin that draws a line between two points set by a user. Kinda like the line brush in voxel sniper. I can figure out the details and basic stuff but I can't come up with any algorithm to do the line drawing. Anyone have an idea of some sort of algorithm that could do this?
Trigonometry. Make sure you check if the x and z are the same, it would be much faster to do that than waste your time trying to perform a trig calculation and figuring out te hypotenuse is the same length as the opposite and adjacent legs...