API Reference > geometry-core > CartesianGeometry > Matrix3d > createPerpendicularVectorFavorPlaneContainingZ createPerpendicularVectorFavorPlaneContainingZ MethodStatic return a vector that is perpendicular to the input direction. Among the infinite number of perpendiculars possible, this method favors having one near the Z. That is achieved by crossing "this" vector with the result of createHeadsUpPerpendicularFavorXYPlane. createPerpendicularVectorFavorPlaneContainingZ(vector: Vector3d, result?: Vector3d): Vector3d Parameter Type Description vector Vector3d result Vector3d Returns - Vector3d Defined in core/geometry/src/geometry3d/Matrix3d.ts Line 479 Last Updated: 13 June, 2024