def getXNormalizedVector3Path(path):
 if (len(path) < 1):
  return path
 minimumX = path[0].x
 for point in path[1:]:
  minimumX = min(minimumX, point.x)
 for point in path:
  point.x -= minimumX
 maximumX = path[0].x
 for point in path[1:]:
  maximumX = max(maximumX, point.x)
 for point in path:
  point.x /= maximumX
 return path

def getXNormalizedVector3Path ( path ) : if ( len ( path ) < 1 ) : return path minimumX = path [ 0 ] . x for point in path [ 1 : ] : minimumX = min ( minimumX , point . x ) for point in path : point . x -= minimumX maximumX = path [ 0 ] . x for point in path [ 1 : ] : maximumX = max ( maximumX , point . x ) for point in path : point . x /= maximumX return path
get path where the x ranges from 0 to 1 .