public bool IsBehind(WoWUnit o) { var left = o.Location.FlattenZf() + Vector2.UnitY.RotateAround(Vector2.Origo, (float)(o.Facing)); var ray = new Ray2(o.Location.FlattenZf(), left); return(ray.IsOnLeftSide(Location.FlattenZf())); }