API Reference > geometry-core > ArraysAndInterfaces > GrowableXYZArray > distance distance Method Deprecated use distanceIndexIndex Return the distance between two points in the array. distance(i: number, j: number): number | undefined Parameter Type Description i number j number Returns - number | undefined Defined in core/geometry/src/geometry3d/GrowableXYZArray.ts Line 767 Last Updated: 13 June, 2024