public float Distance(Vector pos) { return(pos.DistanceFromRect(visualBounds)); }
public override float Distance(Vector pos, bool includeMargins) { var bounds = UnionBoundsWith(Rect.Empty, includeMargins); return(pos.DistanceFromRect(bounds)); }
public float Distance(Vector pos) { return pos.DistanceFromRect(visualBounds); }
public override float Distance(Vector pos, bool includeMargins) { var bounds = UnionBoundsWith(Rect.Empty, includeMargins); return pos.DistanceFromRect(bounds); }