# Interpolated Point

Grammar — Point interpolated from sourcePoint to targetPoint by fraction fraction
FlagsNative | Function

Returns a point along the line defined by the two given points. The position along the line is determined by the given fraction. 0.0 means the source point, 1.0 means the target point, and 0.5 means half-way between the two. Values outside the 0.0 to 1.0 range result in valid extrapolations along the line beyond the given points.

# Arguments

  • point — Source Point
  • point — Target Point
  • fixed — Fraction

Returns — point

native point PointInterpolate(
	point source,
	point dest,
	fixed fraction,
);

Category: Point / Offsets

# Examples

# mods/heromods/genji.stormmod

LibHGen.galaxy

// L631
PointInterpolate(lv_genjiPosition, lv_initialTargetPoint, lv_interpolationFraction)

# mods/novastoryassets.sc2mod

MapScript.galaxy

// L1184
PointInterpolate(lv_startPoint, lv_endPoint, lv_interpolationOffset)
// L1187
PointInterpolate(lv_startPoint, lv_endPoint, lv_interpolationOffset)
// L1184
PointInterpolate(lv_startPoint, lv_endPoint, lv_interpolationOffset)
// L1187
PointInterpolate(lv_startPoint, lv_endPoint, lv_interpolationOffset)

# mods/starcoop/starcoop.sc2mod

LibCOMU.galaxy

// L194
PointInterpolate(lp_pointA, lp_pointB, lv_indexReal)
// L2070
PointInterpolate(UnitGetPosition(lp_aIUnit), UnitGetPosition(UnitGroupRandomUnit(lp_nearByUnits, c_unitCountAlive)), -0.5)
// L2075
PointInterpolate(UnitGetPosition(lp_aIUnit), UnitGetPosition(UnitGroupRandomUnit(lp_nearByUnits, c_unitCountAlive)), 0.5)
// L7617
PointInterpolate(PlayerStartLocation(1), PlayerStartLocation(2), 0.5)
// L13254
PointInterpolate(PlayerStartLocation(1), PlayerStartLocation(2), 0.5)