# Interpolated Point
Grammar — Point interpolated from sourcePoint to targetPoint by fraction fraction
Flags —Native
|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 Pointpoint
— Target Pointfixed
— Fraction
Returns — point
native point PointInterpolate(
point source,
point dest,
fixed fraction,
);
# Related
Category: Point / Offsets
- [F] —
point
— Point Facing Angle — ( libNtve_gf_PointFacingAngle ) - [F] —
point
— Point With Z Offset — ( libNtve_gf_PointWithZOffset ) - [F] —
point
— Point With Offset — ( PointWithOffset ) - [F] —
point
— Point With Polar Offset — ( PointWithOffsetPolar ) - [F] —
point
— Point Offset Towards Point — ( libNtve_gf_PointOffsetTowardsPoint ) - [F] —
point
— Random Point Between Points — ( libNtve_gf_RandomPointBetweenPoints ) - [F] —
point
— Reflected Point — ( PointReflect ) - [F] —
point
— Interpolated Point — ( PointInterpolate ) - [F] —
point
— Mid-Point — ( MidPoint )
# Examples
# mods/heromods/genji.stormmod
// L631
PointInterpolate(lv_genjiPosition, lv_initialTargetPoint, lv_interpolationFraction)
# mods/novastoryassets.sc2mod
// 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
// 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)