# Distance Squared Between Points
Grammar — Distance squared between p1|Point and p2|Point
Flags —Native
|Function
Returns the squared distance between two points as a real value.
# Arguments
point
— Point 1point
— Point 2
Returns — fixed
native fixed DistanceSquaredBetweenPoints(
point p1,
point p2,
);
# Related
Category: Point / Measurements
- [F] —
fixed
— X Of Point — ( PointGetX ) - [F] —
fixed
— Y Of Point — ( PointGetY ) - [F] —
fixed
— Facing Angle Of Point — ( PointGetFacing ) - [F] —
fixed
— Height Of Point — ( PointGetHeight ) - [F] —
fixed
— Angle Between Points — ( AngleBetweenPoints ) - [F] —
fixed
— Distance Between Points — ( DistanceBetweenPoints ) - [F] —
fixed
— Distance Squared Between Points — ( DistanceSquaredBetweenPoints ) - [F] —
bool
— Point Is In Region — ( RegionContainsPoint )
# Examples
# mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod
// L1677
DistanceSquaredBetweenPoints(lp_minionIndex, lp_minionIndex2)
// L1677
DistanceSquaredBetweenPoints(lp_minionIndex, lp_minionIndex3)
// L1677
DistanceSquaredBetweenPoints(lp_minionIndex2, lp_minionIndex3)
# mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod
// L348
DistanceSquaredBetweenPoints(lp_minionIndex, lp_minionIndex2)
// L348
DistanceSquaredBetweenPoints(lp_minionIndex, lp_minionIndex3)
// L348
DistanceSquaredBetweenPoints(lp_minionIndex2, lp_minionIndex3)
# mods/heroesmapmods/battlegroundmapmods/volskayadata.stormmod
// L80
DistanceSquaredBetweenPoints(UnitGetPosition(EventUnit()), UnitGetPosition(EventUnit()))