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 core/geometry/src/geometry3d/Matrix3d.ts Line 463 Last Updated: 13 June, 2024