Function interpolatePointsByRatio

  • 通过比例(0-1)的值,得到坐标序列的点坐标的值

    Parameters

    • points: [number, number, number][]

      坐标序列

    • ratio: number

      比例

    • Optional options: {
          curRetIndex?: number;
          distance?: number;
          nextPoint?: [number, number, number];
          remainingPoints?: [number, number, number][];
          segmentDist?: number[];
      }

      选项

      • Optional curRetIndex?: number
      • Optional distance?: number
      • Optional nextPoint?: [number, number, number]
      • Optional remainingPoints?: [number, number, number][]
      • Optional segmentDist?: number[]

    Returns [number, number, number][]