API Reference > geometry-core > CartesianGeometry > Point2dArrayCarrier > vectorXAndYIndex vectorXAndYIndex Method Return a vector from given origin to point at indexB vectorXAndYIndex(origin: XAndY, indexB: number, result?: Vector2d): Vector2d | undefined Parameter Type Description origin XAndY origin for vector indexB number index of point within the array result Vector2d caller-allocated vector. Returns - Vector2d | undefined undefined if index is out of bounds Defined in core/geometry/src/geometry3d/Point2dArrayCarrier.ts Line 78 Last Updated: 13 June, 2024