get3dBaseFromVector
-
get3dBaseFromVector() -
Generates a 3D orthonormal basis from a given normal vector.
This function takes a normal vector, normalizes it, and then computes an orthogonal vector to it. Finally, it returns an array containing the normalized normal vector, the orthogonal vector, and their cross product, which forms an orthonormal basis.
Parameters
normal:
IPoint3The input normal vector from which to generate the 3D basis.Returns:
IPoint3[]An array of three IPoint3 vectors representing the orthonormal basis.