API Reference > geometry-core > CartesianGeometry > Matrix3d > createPerpendicularVectorFavorXYPlane 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 geometry3d/Matrix3d.ts Line 539 Last Updated: 11 June, 2024