/// <summary> /// Returns a string describing the coordinates as a Lua table of format "{ x = <see cref="X"/>, y = <see cref="Y"/> }" /// </summary> /// <returns>A string</returns> public string ToLuaTable() { return($"{{ [\"x\"] = {Toolbox.ValToString(X)}, [\"y\"] = {Toolbox.ValToString(Y)} }}"); }
/// <summary> /// Returns the MinMax value as a string. /// </summary> /// <param name="stringFormat">A format string.</param> /// <returns>A string</returns> public string ToString(string stringFormat) { return(Toolbox.ValToString(Min, stringFormat) + "," + Toolbox.ValToString(Max, stringFormat)); }
/// <summary> /// Converts the coordinates to a string in the "X,Y" format in the invariant culture. /// </summary> /// <returns>A string</returns> public override string ToString() { return(Toolbox.ValToString(X) + "," + Toolbox.ValToString(Y)); }