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