API Reference > geometry-core > ArraysAndInterfaces > IndexedXYZCollection > vectorXYAndZIndex vectorXYAndZIndex MethodAbstract Return a vector from origin to the point at indexB vectorXYAndZIndex(origin: XYAndZ, indexB: number, result?: Vector3d): Vector3d | undefined Parameter Type Description origin XYAndZ origin for vector indexB number index of point within the array result Vector3d caller-allocated vector. Returns - Vector3d | undefined undefined if index is out of bounds Defined in core/geometry/src/geometry3d/IndexedXYZCollection.ts Line 84 Last Updated: 13 June, 2024