Watch
2
0
Fork
You've already forked raylib-cs
0

Update ToString usage

This commit is contained in:
Rgebee 2022-01-26 21:23:13 +00:00
commit 1864e6c137
2 changed files with 12 additions and 2 deletions

View file

@ -61,7 +61,7 @@ namespace Raylib_cs
public override string ToString() public override string ToString()
{ {
return $"{{r:{r} g:{g} b:{b} a:{a}}}"; return $"{{R:{r} G:{g} B:{b} A:{a}}}";
} }
} }
} }

View file

@ -24,7 +24,7 @@ namespace Raylib_cs
public override string ToString() public override string ToString()
{ {
return $"{{x:{x} y:{y} width:{width} height:{height}}}"; return $"{{X:{x} Y:{y} Width:{width} Height:{height}}}";
} }
} }
@ -70,6 +70,11 @@ namespace Raylib_cs
this.position = position; this.position = position;
this.direction = direction; this.direction = direction;
} }
public override string ToString()
{
return $"{{Position:{position} Direction:{direction}}}";
}
} }
/// <summary> /// <summary>
@ -97,5 +102,10 @@ namespace Raylib_cs
/// Surface normal of hit /// Surface normal of hit
/// </summary> /// </summary>
public Vector3 normal; public Vector3 normal;
public override string ToString()
{
return $"{{Hit:{hit} Distance:{distance} Point:{point} Normal:{normal}}}";
}
} }
} }