[OpenSCAD] finding angle from a coordinate

tony873004 tony at gravitysimulator.com
Wed Oct 12 21:26:59 EDT 2016

I have a column with a radius of 1.
The column's base is located at 0,0,0, and its top is located at 3,4,5.
As I understand it, to orient the column I need to use rotate, rather than
specify the endpoint.
translate([0,0,0]) {
  rotate([a,b,c]) {
    cylinder(r = 1, h = 7.071);
How would I go about finding the angles a,b,c, knowing the endpoint?

View this message in context: http://forum.openscad.org/finding-angle-from-a-coordinate-tp18684.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

More information about the Discuss mailing list