Table of Contents

Method DistanceSquared

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

DistanceSquared(Location)

Returns the squared distance to the target.

public float DistanceSquared(Location target)

Parameters

target Location

The other location to calculate distance between.

Returns

float

The squared distance in game units, or -1 if the target is in a different area.