# Mid-Point
Grammar — Mid-Point of sourcePoint and targetPoint
Flags —Native
|Function
Returns the point half-way between the two given points.
# Arguments
point
— Source Pointpoint
— Target Point
Returns — point
native point MidPoint(point source, point dest);
# 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/heroesdata.stormmod
// L2247
MidPoint(lp_selfPosition, lp_otherPoint)
# mods/novastoryassets.sc2mod
// L1407
MidPoint(PointFromId(2232), PointFromId(905))
// L1637
MidPoint(PointFromId(2232), PointFromId(905))
// L1407
MidPoint(PointFromId(2232), PointFromId(905))
// L1637
MidPoint(PointFromId(2232), PointFromId(905))
# mods/starcoop/starcoop.sc2mod
// L6978
MidPoint(PlayerStartLocation(PlayerGroupPlayer(libCOOC_gf_CommanderPlayers(), 1)), PlayerStartLocation(PlayerGroupPlayer(libCOOC_gf_CommanderPlayers(), 2)))