public override string ToString() { return("[X: " + x.ToString() + ", Y: " + y.ToString() + ", O: " + origin.ToString() + "]"); }
/// <summary> /// Converts this <see cref="Rect2"/> to a string with the given <paramref name="format"/>. /// </summary> /// <returns>A string representation of this rect.</returns> public string ToString(string format) { return($"{_position.ToString(format)}, {_size.ToString(format)}"); }
/// <summary> /// Converts this <see cref="Transform2D"/> to a string with the given <paramref name="format"/>. /// </summary> /// <returns>A string representation of this transform.</returns> public string ToString(string format) { return($"[X: {x.ToString(format)}, Y: {y.ToString(format)}, O: {origin.ToString(format)}]"); }