A unit vector is a vector whose length is 1. To convert a vector to a unit vector you simply divide each component of the vector by the vectors length.
For example to find the unit vector of the vector (1, 5, 7):
Thankfully using the Revit API the calculation is very trivial:
No comments:
Post a Comment