createPerpendicularVectorFavorXYPlane MethodStatic

  • return a vector that is perpendicular to the input direction.
  • Among the infinite number of perpendiculars possible, this method favors having one in the xy plane.
  • Hence, when vectorA is NOT close to the Z axis, the returned vector is Z cross vectorA.
  • But vectorA is close to the Z axis, the returned vector is unitY cross vectorA.

createPerpendicularVectorFavorXYPlane(vector: Vector3d, result?: Vector3d): Vector3d

Parameter Type Description
vector Vector3d  
result Vector3d  

Returns - Vector3d

Defined in

Last Updated: 13 June, 2024