Beispiel #1
0
 public override string ToString()
 {
     return("[X: " + x.ToString() +
            ", Y: " + y.ToString() +
            ", O: " + origin.ToString() + "]");
 }
Beispiel #2
0
 /// <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)}");
 }
Beispiel #3
0
 /// <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)}]");
 }