This is my notepad where i collect the useful snippets of OpenSCAD code that i use over and over. Some better curated than others, some formatted for clarity some for efficiency.
Friday, May 12, 2017
Euclidean distance
Euclidean distance of a vector in n dimensions
Usage:
The norm() function works for arbitrary dimensions, which simplifies this as well as the unit vector snippet.
ReplyDelete