createPerpendicularVectorFavorXYPlane MethodStatic

Return a vector that is perpendicular to the input vectorA.

  • Among the infinite number of perpendiculars possible, this method favors having one in the xy plane.
  • Hence, when vectorA is close to the Z axis, the returned vector is vectorA cross -unitY but when vectorA is NOT close to the Z axis, the returned vector is unitZ cross vectorA.

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

Parameter Type Description
vectorA Vector3d  
result Vector3d  

Returns - Vector3d

Defined in

Last Updated: 20 June, 2023